October 17, 2008

CSS z-index trick for IE6 and IE7

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 😉

Leave a Reply

iosc.net 1994-2023