Results 1 to 5 of 5

Thread: What's this IE hack in chromestyle.css?

  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What's this IE hack in chromestyle.css?

    1) Script Title: Chrome CSS Drop Down Menu (v2.01)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  5. #5
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    alright. thank you very much for the prompt responses.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •