OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
CSS Positioning...
This page's ID:
11053
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
Okay, for those of you familiar with CSS-based layouts, a common trick is to nest an absolute positioned DIV inside a relative positioned DIV in order to reset the positioning context. In other words, this allows you to position a DIV absolutely from a relative position. This is useful if you have a header of variable height (depending on font size or somethign) and you want to use an absolute layout for whatever comes after it. The problem I've run into is that absolute positioning pulls a DIV out of the flow of the page, so if you want to have something that flows in after your relatively positioned DIV you run into the problem of it appearing underneath the absolutely positioned stuff. Apparently because the relatively positioned DIV shrinks to the size of all non-absolute items within it. So the moral, as far as I can tell is that once you start down the absolute positioning path in a page, you have to continue using absolute positioning for the rest of the page. Anybody have any clever tricks to work around this limitation? So far I'm stuck using the old ALA trick of margins and floats which is fairly limiting in terms of what you can do. I feel like there's some trick I'm missing tha would make CSS layouts really come together. -jiblet
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »