|
Posted by Steve Pugh on May 12, 2008, 1:46 pm
Please log in for more thread options > Hi this is the html to generate the behavior:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www=
.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns=3D"http://www.w3.org/1999/xhtml" >
> <body style=3D"margin: 0px; padding: 0px;">
> =A0 =A0 =A0 =A0 <div style=3D"margin-left: 10px; float: left;">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <div id=3D"test" style=3D"background-color=
: red;">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 test
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </div>
> =A0 =A0 =A0 =A0 </div>
> </body>
> </html>
>
> I used margin-left: 10px but IE6 show a margin with 20px.
Known bug with IE6. If you float to one side it doubles the margin on
the same of the floated element.
See http://www.positioniseverything.net/explorer/doubled-margin.html
Steve
|