Tuesday, September 16th 2008
Internet Explorer 8 beta 2 is behaving pretty strange when it comes to max-width. (And min-width?) It seems to cope with it sometimes, and sometimes not.
So why doesn’t it cope with the max-width rule I have in the CSS of this blog? I haven’t managed to work it out anyway. IE8 b2 doesn’t obey my rule that says paragraphs should be a maximum of 30 em units wide.
I have tried debugging the behaviour by changing various factors in the stylesheets but nothing seems to help. If anyone happens to know about this bug, please leave a comment.
Edit: I finally found the reason for max-width not working. This blog used the XHTML strict doctype which IE8 doesn’t understand. Now I have changed it for the HTML 5 doctype and it works beautifully.