Thread: relative positioning, i think
Results 1 to 2 of 2
04-17-2003, 09:39 PM #1
relative positioning, i think
I'm trying to put my websites into xhtml and use css and div tags to layout my sites. I'm trying to figure out how to have subsequent layers position themselves relative to the layer positioned above them. For example, I have one layer with a banner, the following layer is content. The content layer changes size due to the amount of text or graphics in there at the time, so I need the layer positioned below that to be able to move accordingly. How do I do this? Thanks in advance.
04-18-2003, 05:06 AM #2
You have pretty much answered your own question in your topic title.
Sounds like you need to use relative positioning.
The difference between relative positioning and absolute is that relative does not 'collapse' the space occupied by the html element. This means that if you do
position: relative; top: +20%;
Best bet is to have a play. Also, http://css.somepeople.net uses two absolute divs for nav and 2-3 relative divs for the content. have a look, it might help.If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?