Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

float:left; problem in ie6?

i have a div with style (float:left and margin-left:10px).

It working fine in firefox, chrome, safari but in ie it will take extra space from the left side. How to remove that space in ie6 without using hacking.

Thanks.

like image 582
anglimasS Avatar asked Apr 24 '26 17:04

anglimasS


1 Answers

This is the IE Double Margin Float Bug and you need a hack.

The good news is that it is a valid hack with no side effects.

Set display: inline. This will fix the bug but, since the element is floating, not cause the element to display inline.

like image 79
Quentin Avatar answered Apr 27 '26 06:04

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!