IE 6 “position: relative” fix

August 22nd, 2008   Filed Under CSS, Good to know, Technology, Tips & Tricks, browser  

I got a big-time fix for IE6 bug which doesn’t behave properly for the position: relative elements.

Problem:
When you give some position:relative style to any element in the page and resize the browser, it behaves as if that element had a position: fixed assigned.

The Fix:
Simply add position: relative to your body tag and make that your habit to have it in the first place whenever you start a new css sheet.

Hope that helps people getting frustrated with this problem.

Enjoy Madi !!


Comments

Leave a Reply