I swear I’ve seen people add multiple background images to an element using the :after selector. For whatever reason, I can’t get it to work. What am I doing wrong? Can anyone point me to a working example?
#el li { background:url(image1.jpg) top center;}
#el li:after { background:url(image2.jpg) bottom center;}
Thanks!
As Blender notes, there is some type of dom node added as content to the end of the element’s content. However, you also need to provide some kind of content AFAICT to make it work.
http://jsfiddle.net/QhUsS/