Posts Tagged ‘ie6 random move’

IE6 Randomly moves stuff around and how to fix it

Wednesday, August 27th, 2008

Recently I had to work on a layout that had a lot of javascript in it, and because the structure of the html couldn’t change, I positioned things absolutely and relatively ( position: absolute; position: relative;) in order to get things in the right place. I was very pleased with the results and Firefox and IE7 looked exactly the same. Then came IE6. It was slightly off when I first loaded it in, so I did the typical thing and just did some conditional code for ie 6. Then, the next time I refreshed, things moved into random other places. And then again on the next refresh. And then not on the next refresh. And so on. How did I fix it? On today, the 7th birthday of IE6, when others are working hard to put ie6 on its death march, here’s a bit of code that made my life a little brighter… (more…)