Carol Huddleston wrote: > Thank you very much! This worked for me. Also, I was not aware of > conditional comments before I asked this question, but after reading > about it, I did use a separate IE stylesheet for the solution listed > above. I don't see conditional comments mentioned a lot on this list > (though I don't read every post), so I want to make sure that it's > considered "okay" or proper to use them while designing a CSS web > site. It seems like a great idea to me, but I want to make sure I'm > doing things the right way. > > Thanks again, > > Carol
The only reason that the HTML code has IE conditional comments (CC) is that IE6 does not natively support hover on elements apart from anchor links. The only way to get IE6 working is by using javascript for hover on the <li> elements. This javascript is not required by IE7 or any other modern browser so it is hidden from these browsers by the use of CC. I do recommend that such CC be included into the <head> of the document by the use off SSI (Server Side Includes) since this allows you to easy remove any CC or similar element within the <head> element in the future. The reason you don't here much of CC on this list is that some of us just prefer using CSS hacks for IE. Apart from the link that David provided you with, you may wish to know how hacking multiple versions of IE is possible. <http://css-class.com/test/bugs/ie/ie-hacks.htm> Only use CSS hacks when you truly understand why such hacks are needed. This is by understanding what IE bugs are at play. -- Alan http://css-class.com/ Nearly all men can stand adversity, but if you want to test a man's character, give him power - Abraham Lincoln ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
