HI all,
It’s been a while since I stumbled upon a problem which made me go to a forum for help.
I’ve had great help by Paul’OB in the past, so I’ll try here.
I even find it hard to describe the problem in a search query, or figure it out, so search results don’t get me further.
I’ll try to explain the situation as good as I can.
<html style="position: relative; height: 100%">
<body style="position: relative; height: 100%">
<div class="l-full-canvas" style="position: absolute; height: 100%; width: 100%; top: 0; left: 0; overflow: hidden">
<div class="l-main-canvas" style="position: absolute; height: 100%; width: 100%; top: 0; left: 0; overflow: hidden">
<div class="l-main-canvas-inner" style="position: absolute; height: 100%; width: 100%; top: 0; left: 0; overflow: hidden">
<div class="l-cont-fw-top" style="position: absolute; width: 100%; left: 0; top: 0;">elements inside make it 60px high</div>
<div class="l-cont-fw-main" style="position: absolute; width: 100%; left: 0; top: 60px; bottom: 30px; overflow-x: hidden; overflow-y: scroll"> this div contains sections with id's that act as page jump targets</div>
<div class="l-cont-fw-foot" style="position: absolute; height:30px; width: 100%; left: 0; bottom: 0; "></div>
</div>
</div>
</div>
</body>
</html>
When you open the page … everything renders correct. (just started making it responsive, so kinda buggy on smaller screens).
http://www.contend.be/~contend/experience-matters/nl/products-amp-services.htm
But when you click on one of the tab nav items, that act as page jumps to section id’s. the .l-cont-fw-top, .l-cont-fw-main & .l-cont-fw-foot all go 10px to the top.
The .l-main-canvas-inner element still renders with the full height, with no 10px jump to the top.
Only all the elements inside jump like this.
This is also when you open the page with the id in the url. (well it is in firefox)
same link with
#portfolio-mio-technology-device-coverage
behind (sorry I can only post 2 links)
If I make everything position relative … the problem dissapears.
But I realy want these elements to be position absolute.
Here is a screenshot (with firebug selecting the l-cont-fw-main element (light blue) to illustrate the problem.
I’m really curious what causes this problem, so if anybody has an idea … please shoot.