Results 1 to 9 of 9

Thread: Drop tab menu in Safari

  1. #1
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Drop tab menu in Safari

    1) Script Title: Drop tab menu

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

    3) Describe problem: I noticed that the drop tab menu on my site expands horizontally in Safari so that the last tab appears on another row with the horizontal bar. It looks like the text is larger than other browsers which causes the expansion. I was just wondering if anyone had a work-around? Thanks!

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

    Default

    What version of Safari are you using, and does the problem occur in the DD demo page as well? It sounds like it could be the way you've customized style of your menu that's causing the problem, but please post a link to the page on your site that contains the problematic script so we can check it out.

  3. #3
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hi, I was using a site which displays a webpage in different types of browsers. I forgot the name of the site, but I noticed for Safari this problem occurred. My site that I'm using this on is http://www.toledobend.com



    Quote Originally Posted by ddadmin View Post
    What version of Safari are you using, and does the problem occur in the DD demo page as well? It sounds like it could be the way you've customized style of your menu that's causing the problem, but please post a link to the page on your site that contains the problematic script so we can check it out.

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

    Default

    I see the problem. Inside ddcolortabs.css, remove this line:

    Code:
    letter-spacing: 1px;
    Apparently Safari interprets it differently from the other browsers, causing each tab to be longer in that browser.

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

    tonto11 (03-25-2008)

  6. #5
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply. Is there another work around to this problem? When I remove the letter-spacing the text appears too cramped. I noticed even Alexa's thumbnail shows the bar carring over to the next row. Thanks.

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

    Default

    When I remove the letter-spacing the text appears too cramped.
    I gather you mean when you remove letter-spacing, the text appears fine in Safari now, but too cramped in other browsers?

  8. #7
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hi, yes it shows up fine in Safari but the letter-spacing looks cramped in other browsers when I remove that line from ddcolortabs.css. I'm guessing the number of Safari users is small but I'd still like to make it show up better for them without compromising the look in other browsers. Thanks.

  9. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You could add this (highlighted) to the head of your page after the style link:

    Code:
    <link rel="stylesheet" type="text/css"  href="http://www.toledobend.com/dropdowntabfiles/ddcolortabs.css" />
    <script type="text/javascript">
    if(/Apple/.test(navigator.vendor))
    document.write('<style type="text/css">.ddcolortabs a {letter-spacing:0;}<\/style>');
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. The Following User Says Thank You to jscheuer1 For This Useful Post:

    tonto11 (04-23-2008)

  11. #9
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Awesome, thanks I'll try that out.

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
  •