I can’t find a clear answer on the following:
I have this html:
<html>
<head>
<title>Title blabla</title>
</head>
<body>
<div id="gHeader">
</div>
<div id="gBody">
</div>
</body>
</html>
gHeader is the header part, this is where the menu goes, gBody is the body part, this is where everything else goes.
When I get a lot of content in gBody, more than can fit on the screen, a scrollbar appears on the right. Problem is that this scrollbar pushes gHeader a bit to the left.
The solution I’m searching for is that when a scrollbar appears, it only appears in gBody, and not partly on gHeader.
I don’t want a scrollbar to influence the look and feel of my header. Especially because a part of my menu starts from the right. Is this possible?
You would need to manually set the height of the content area, and use
overflow:auto. Something like this might work: