May 26 2008
CSS margin auto on IE 7 (with CakePHP?)
I had a problem with the margin CSS property on a website with cake. Actually, I used a CSS template for Wordpress, copying the code to my website. The code seemed identical, the CSS too, but while on Firefox everything was ok, using IE 7 the page was left oriented (while using Firefox, or accessing a blog with that theme with Iinternet Explorer 7, it was centered). After a long debugging, i discovered that CakePHP was configured with debug level 1, which outputted the compilation time at the beginning of the page, in a comment. This seemed to upset IE, because when I set the debug level to 1, the comment disappeared and IE 7 displayed the page properly too.



Default
Small Fonts
Big Fonts