Archive

Archive for October 17th, 2008

Encode in UTF-8 without BOM

October 17th, 2008

this is important issue when you have a multi-language windows (like me is the english version with chinese support) and you are a web developer.

I always did web development in English but my software always automatically encoded in big-5 and I have to change it to UTF-8

So, one day I came across a problem where my site is not working in IE7. I have been trying to correct it for 5 hours still no solve. At last, I found the problem where when I view the source of the page, I saw the first character on first line of the source codes is a dot.

I then solve this issue by encoding my php file which came on top all time of every index.php to UTF-8 without BOM (means UTF-8 without signature in some software).

Really headache huh!

boyd Uncategorized

CSS z-index trick for IE6 and IE7

October 17th, 2008

Just found out that if you have sort of CSS drop down menu, sometime when the menu drop and touch the bottom DIV, the menu will be cut off.

The solution is very simple, let say your drop down menu #menu is within #header part, you just need to set the #header with z-index:2;

then your next part maybe #contents, this should be set to z-index:1;

Hope you got it ;)

boyd Design, Programming , , , ,