[thelist] relative vs absolute

James Aylard webmaster at equilon-mrc.com
Mon Apr 23 10:01:51 CDT 2001


Andrew,

> is there a way to have a div float above or below other
absolute-positioned
> divs?

    Yes. Look into "z-index" [1, 2]. You set a higher z-index value for the
div that you want to float above the other divs. Should work in IE 4+,
Netscape 4+ (although I've done very little with CSS positioning in Netscape
4.x, and can't adequately warn you of the potential pitfalls).

1. W3C documentation:
http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-z-index

2. Microsoft's documentation:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/zIndex.
asp





More information about the thelist mailing list