XHTML, CSS, Javascript, Browser Notes

Tuesday, November 28, 2006

CSS Z index with relative positioning

Q. How do I position items relatively and still be able to set their Z-index?


A. Don't!



Many of you probably already know this, but you don't have to position an element with position:absolute by hand anyways. When you set your css, simply set position:absolute - don't define the top or left positioning - and the element will lie where it normally would within the document flow.

0 Comments:

Post a Comment

<< Home