When setting my header and footer to 100% I get some strange behaviour in FF4, Safari 5 and Chrome 12 on Mac OS X. If I have my browser window at a high resolution and scale it down horizontal scrollbars will appear, even though the content should scale with the browser window.
I saw this thread which seemed to have a similar problem, though the user never seemed to find a solution:
CSS 100% width on browser resize
Overflow-x doesn’t work for me as the error labels, which are absolutely positioned, will behave as fixed positioned.
DEMO here (errors on blur):
http://kassekladde.tixz.dk/kontakt-os/
Thanks in advance
The problem is caused by
#overlay. You have setvisibility:hidden. This hides the content but allows it to still take up space on the page. If you change it todisplay:noneinstead it will hide the content and the space it takes up, stopping the scrollbars in the process.#overlayis dynamically given a width/height as the page shrinks. As you can see below it reachedwidth:1711pxat one point and so scrollbars appeared: