CSS positioning is weird when reducing the viewport

Posted by Lars Hanke on Stack Overflow See other posts from Stack Overflow or by Lars Hanke
Published on 2012-03-18T18:43:39Z Indexed on 2012/03/20 11:29 UTC
Read the original article Hit count: 709

Filed under:
|
|

I have a little meditation for you ...

I run a site using a liquid tri-col layout with a header. The layout runs nicely since more than a decade with all browsers I ever dared to try. It is based on absolute positioning in CSS. This page provides an example of the actual site.

Watching the page from my tablet I found that the right column overlaps the center matter. Further investigation using Firebug showed that once the center content reaches 360px width, the right margin of the div shrinks. Why is that? Since Firefox and Android render the same, I guess that this is something, which is actually supposed to be.

However, I tried to make virtue out of necessity and experimented setting min-width for body and content and made the body scroll overflow. The body actually scrolls, but the right column is positioned on the right edge of the viewport instead of the body element (Firefox). Is this intentional CSS standard?

Any ideas how to solve the presentation on small displays?

Thanks for your efforts,
 – lars.

© Stack Overflow or respective owner

Related posts about css

Related posts about position