z-index of :before or :after to be below the element, Is that possibale?
Posted
by adardesign
on Stack Overflow
See other posts from Stack Overflow
or by adardesign
Published on 2010-06-13T15:56:37Z
Indexed on
2010/06/14
19:32 UTC
Read the original article
Hit count: 184
I am trying to style a element with the :before
CSS property
a.someSelector{position:relative; z-index:1;}
a.someSelector:after{position:relative; z-index:0; content:" "; position:absolute; width:100px; height:100px;}
It seems like the :after
element can not be lower then the element itself.
Is there a way [hack] to have the pseudo element lower then the element itself?
Thanks
© Stack Overflow or respective owner