PDA

View Full Version : What's this IE hack in chromestyle.css?



spiff
11-21-2006, 07:35 AM
1) Script Title: Chrome CSS Drop Down Menu (v2.01)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm

3) Describe problem:

Hi, I was looking through the chromestyle.css files (chromestyle 1-4) and I noticed in chromestyle.css that there was a bit that said,

* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}

Can someone explain what that's for? Why is it not in the other chromestyle.css files? Is it important?

thanks.

ddadmin
11-21-2006, 07:47 AM
It's to give IE6 and below an explicit width for the menu links (so they react to the mouseover effect). Without it, the menu links will only be as long as the text link itself, rather than the entire width of the menu.

spiff
11-21-2006, 08:54 AM
thanks. it sounds important. how come it's not in the other chromestyle.css style sheets? if i created a new style sheet, would i need to include this?

ddadmin
11-21-2006, 09:33 AM
Hmm it should be there, I must have accidently left it out. :) Yep, include that hack in the other .css files, though it only applies to IE6 and below, and is irrelevant in IE7.

spiff
11-21-2006, 10:51 AM
alright. thank you very much for the prompt responses.
:)