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.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body style="margin: 0px; padding: 0px;">
<div style="margin-left: 10px; float: left;">
<div id="test" style="backgrou nd-color: red;">
test
</div>
</div>
</body>
</html>
I used margin-left: 10px but IE6 show a margin with 20px.
If I remove the style "float: left;" this way:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body style="margin: 0px; padding: 0px;">
<div style="margin-left: 10px;">
<div id="test" style="backgrou nd-color: red;">
test
</div>
</div>
</body>
</html>
the IE6 show the right margin.
Please help-me!!!
or my boss will kill me ;)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body style="margin: 0px; padding: 0px;">
<div style="margin-left: 10px; float: left;">
<div id="test" style="backgrou nd-color: red;">
test
</div>
</div>
</body>
</html>
I used margin-left: 10px but IE6 show a margin with 20px.
If I remove the style "float: left;" this way:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body style="margin: 0px; padding: 0px;">
<div style="margin-left: 10px;">
<div id="test" style="backgrou nd-color: red;">
test
</div>
</div>
</body>
</html>
the IE6 show the right margin.
Please help-me!!!
or my boss will kill me ;)
Comment