OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Absolute Positioning Help
This page's ID:
10890
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
If you want to absolutely position an element relative to its parent, rather than relative to the document, what you have to do is set 'position: relative' on the [i]parent[/i] and then 'position: absolute' on the child you want to position. Note: this isn't supported by NS4 (which will always position relative to the document), and IE5 has a few quirks if you try to absolutely position to a parent using 'right:' or 'bottom:' properties rather than 'top:' or 'left:'. This seems counterintuitive, but it's because the CSS spec states that 'position: absolute' is relative to the nearest [b]positioned[/b] parent element. All elements are unpositioned by default, so this usually means the nearest positioned element is the document: hence you have to override this with 'position: relative' on the parent element.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »