artnorm

news

2009-02-20 Positioning your Body (CSS-Reset-Tip #7758)

Even if you think, you’ve seen everything with CSS, then, some day, you dip into something new. It is already common practice to make a css-reset (yahoo, eric meyer, drupal, YAML to name a few) to get your audiences browsers in order. But the last days in one of my current projects I was facing some strange behaviour in A-Grade Browsers.

So here is my tipp for the CSS-Reset to add:


/* position body to full size */
body {bottom:0; left:0; right:0; position:absoute; top:0;}

This just tells the browser that the body is absolutely positioned from left to right and top to bottom. This was very useable for me.

Update: Looks like, even though you get a strict move, it can produce problems in browser when resizing. So only use it punctual and globally. I used it to fix some Odd Behaviour in Opera.

up to top
the summer | contact artnorm

links

spec stuff

hosted by artnorm

friends of artnorm