I'm struggling to figure this out. I have an article in which two elements are inserted :before and :after , both of which are absolutely inside this article.
In all browsers except IE8, z-index styling works fine. It should go in this order from the bottom up:
Article Content> Fade Out Image> Icon
I have already tried several different things, the latest of which can be seen here: http://jsfiddle.net/LtYMV/2/
The main run of what I'm trying is as follows:
article { // styles } article:before { // icon background image used on inserted content } article:after { // background image used on inserted content }
I know there is some kind of trick. I just can't figure it out with any combination of z-index values. Help rate!
source share