OK, so I just spend about an hour before I was realizing what was causing this issue.
Here's my code:
Pretty simple, 3 columns fit into an 800 px wrap.Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Title</title> </head> <body> <div style="width: 800px; background: #f9f9f9;"> <div style="width: 538px; height: 222px; background: #ccc; float: left;"></div> <div style="width: 20px; height: 222px; background: #000; float: left;"></div> <div style="width: 242px; height: 222px; background: #f00; float: right;"></div> </div> </body> </html>
That's how it should look in all browsers, which it does. The problem is whenever I add a comment, for example:
It throws the layout off course in IE6! From a simple comment? Anyone know the reason for this? Weird.Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Title</title> </head> <body> <div style="width: 800px; background: #f9f9f9;"> <div style="width: 538px; height: 222px; background: #ccc; float: left;"></div><!-- test --> <div style="width: 20px; height: 222px; background: #000; float: left;"></div> <div style="width: 242px; height: 222px; background: #f00; float: right;"></div> </div> </body> </html>


Reply With Quote

Bookmarks