I have not gone thru ur codes. But i may guess for a bug. IE 6 doubles the margin. if you have given margin as 20px; IE6 vl take it as 40px; .Alos a proper doctype should be used for proper working of CSS box model. I think its becoz you have not used float properly.