Results 1 to 2 of 2

Thread: Width not working in IE -

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Width not working in IE -

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

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

    3) Describe problem:
    Width not working in IE -

    I've installed the Chrome Drop Down Menu and it looks great in Firefox and Chrome but goes wonky in IE and I'm too much of a novice to figure out why. I see there was a forum topic about the width not working but the link wasn't working for me.

    my site:
    www.bikramyogasurrey.com

    Thanks for any help.
    Mark

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

    Default

    It looks like the text for your main menu items is just long enough that it causes it to spill over into the 2nd line in IE. While the width of the menu should theoretically be identical across browsers, I guess IE renders certain things slightly differently, hence the longer width. I'd try decreasing the padding inside chrome.css to see if that changes anything:

    Code:
    .chromestyle ul{
    border: 1px solid #BBB;
    width: 100%;
    background: url(chromebg4.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 5px 0;
    margin: 0;
    text-align: right; /*set value to "left", "center", or "right"*/
    }
    
    .chromestyle ul li{
    display: inline;
    }
    
    .chromestyle ul li a{
    color: #494949;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-right: 1px solid #cac995; /*THEME CHANGE HERE*/
    }
    Adjust the value in red above to something smaller.
    DD Admin

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
  •