Results 1 to 5 of 5

Thread: Chrome Menu in Firefox

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Chrome Menu in Firefox

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

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/indexb.html

    3) Describe problem:

    The horizontal menu looks/works fabulous in IE but is all squished together in FF. The drop down menu choices look great in both browsers and work seamlessly. I just can't get the menu bar to display correctly in FF.

    site: www.getmia.net/Mark/test

    Any ideas would be great!

    Thanks
    Becca

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

    Default

    Hmm in FF3, clicking on the "no sound" option to enter the page crashes the browser for me. Tried it twice to make sure. Please remove anything that may possibly causing this.
    DD Admin

  3. #3
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    let's just bypass it for now:

    www.getmia.net/Mark/test/home

    I can't get FF to give me that same error (crashing when you try "no sound"). Thanks for the feedback though.

    Becca

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

    Default

    Ok, testing things in FF3, the problem is due to the way you've defined your CSS, specifically, the line in red:

    Code:
    .chromestyle ul li a{
    width:122px;  /*MAIN MENU WIDTH CHANGE HERE*/
    color: #494949;
    padding:2px 0;
    margin: 0;
    text-decoration: none;
    margin-left:auto and margin-right:auto 
    border-right: 1px solid #E0E0E0;
    border-left: 1px solid #E0E0E0;
    }
    That line, while it affects IE, won't suffice in changing the height of each menu item in standard compliant browsers, such as Firefox. That's because "width" has no effect on SPAN elements, which are what the menu items consist of. You'll need to resort to just adding some padding to the left/right edges of each menu item to simulate the effect of width, such as:

    Code:
    .chromestyle ul li a{
    color: #494949;
    padding:2px 25px;
    margin: 0;
    text-decoration: none;
    margin-left:auto and margin-right:auto 
    border-right: 1px solid #E0E0E0;
    border-left: 1px solid #E0E0E0;
    }
    BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm
    DD Admin

  5. The Following User Says Thank You to ddadmin For This Useful Post:

    beccaS (09-11-2008)

  6. #5
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That was the problem! Thanks! It works great.
    Sorry about the violation. I had the credit included in the js file but have also added it to the script now too.

    Thanks for the script.

    Becca

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
  •