Tuesday 4 September 2012

Placing an image (element) in front of another on a webpage

If you would like to position an object\element in front of another one, you can use the very handy style property z-index to a higher number

style="z-index:2; position:absolute;"


N.B.: z-index works only on positioned elements

No comments:

Post a Comment