May 26 2008

CSS margin auto on IE 7 (with CakePHP?)

Classified in: Internet explorer, HTML, CSS, CakePHPpaomic at 2:11 pm

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.


Mar 17 2008

AC_FL_runcontent alternatives

Classified in: Flash, HTMLpaomic at 6:06 pm

AC_FL_runcontent is a JS script used to embed flash movie into HTML pages. There are a number of alternatives to it, the main one being SWF_Object, available at Google code repository. It adds features as flash player version detection and alternative code display, both web standard compliant. Other useful scripts can be UFO or SWFFix, but both of them are deprecated, and the respective developers joined SWF_Object 2.0 team (or suggest ot use this tool). To learn more about Flash embedding and object/embed quarrel read here.


Dec 04 2007

Rounded corners with CSS

Classified in: HTML, CSS, Design, Websites, Web toolspaomic at 11:17 am

I found a very nice discussion about Google rounded corners, which describes a way to get rounded corners from a dynamic page in Google groups. Doesn’t seem to me a good choice to rely your website design on an external tool, especially because in that url you can see the word beta, not a synonym of stability and reliability! It could be a nice starting point, you could create your own rounded corner creator just save those images for future use. Happy designing! :D