I often see the layout based on this model
Code:
<div id="container">
<div id="header">Header</div>
<div id="wrapper">
<div id="content">Content</div>
</div>
<div id="leftNavigation">Navigation</div>
</div>
However, this model presents a major problem when the div "Content" contains a table wider than the viewport.
In this case, the content is stretched and a scrollbar appears at the bottom of the screen to scroll horizontally. Unless there is a "overflow: hidden". But I do not want to hide the contents of my table.
So if I understand it, to fix this problem. I need a model like that?
Code:
<div id="container">
<div id="header">Header
<div id="wrapper">
<div id="content">Content</div>
</div>
<div id="leftNavigation">Navigation</div>
</div>
</div>
And if my header must have a height of 100 pixel, then I must define its padding 100 pixels and a margin (width and height) to 0 px. Then placing my background picture.
Tell me if I'm on the right track. Or if you see another problem?
Bookmarks