ToshTrent
Technical User
- Jul 27, 2003
- 209
Hi,
Sorry to be a pain, you probably get asked this a thousand times.
I'm having trouble with the positioning element of divs and css.
I have a header(H), a side menu(S), page content(P) and footer(F) div layers.
-------------------------
| H |
-------------------------
| | |
| S | P |
| | |
| | |
| | |
| | |
-------------------------
| F |
-------------------------
The header contains an image which is a different size on different pages depending on the section the user is visiting.
Due to not knowing the header size (due to change) I cannot use absolute positioning on the <div pagecontent> as it ends up floating over the header. If I use relative the <div pagecontent> moves to the bottom of the page (between submenu and footer).
What is the best method to ensure my <div pagecontent> stays say 50px from header and 40px from submenu at all times no matter how big the header is?
I hope this makes sense.
Thanks for your help guys and gals.
Tosh
Sorry to be a pain, you probably get asked this a thousand times.
I'm having trouble with the positioning element of divs and css.
I have a header(H), a side menu(S), page content(P) and footer(F) div layers.
-------------------------
| H |
-------------------------
| | |
| S | P |
| | |
| | |
| | |
| | |
-------------------------
| F |
-------------------------
The header contains an image which is a different size on different pages depending on the section the user is visiting.
Due to not knowing the header size (due to change) I cannot use absolute positioning on the <div pagecontent> as it ends up floating over the header. If I use relative the <div pagecontent> moves to the bottom of the page (between submenu and footer).
What is the best method to ensure my <div pagecontent> stays say 50px from header and 40px from submenu at all times no matter how big the header is?
I hope this makes sense.
Thanks for your help guys and gals.
Tosh