Created
December 6, 2013 09:48
-
-
Save khmyznikov/7821208 to your computer and use it in GitHub Desktop.
Image near div with :before :after elements
From http://stackoverflow.com/questions/6668577/using-before-css-pseudo-element-to-add-image-to-modal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Modal:after{ | |
content:url('blackCarrot.png') /* with class ModalCarrot ??*/ | |
position:relative; /*or absolute*/ | |
z-index:100000; /*a number that's more than the modal box*/ | |
left:-50px; | |
top:10px; | |
} | |
.ModalCarrot{ | |
position:absolute; | |
left:50%; | |
margin-left:-8px; | |
top:-16px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment