Results 1 to 5 of 5

Thread: DD Tab Menu formatting question

  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Tab Menu formatting question

    I would like to change the link color of the sub-menu. I have tried to add it to the tabcontent class, but this doesn't seem to work. For example:

    .tabcontent a:link {
    display:none;
    color: #fff;
    text-decoration: none;
    }

    .tabcontent a:visited {
    display:none;
    color: #fff;
    text-decoration: none;
    }

    .tabcontent a:hover {
    display:none;
    color: #fff;
    text-decoration: none;
    }

    .tabcontent a:active {
    display:none;
    color: #fff;
    text-decoration: none;
    }

    Also, I have played around with the display:none; but this didn't help either...

    any ideas?

  2. #2
    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

    This is all you need:

    Code:
    .tabcontent a {
    color: #0fa;
    background-color#fff;
    text-decoration: none;
    }
    Don't make the display:none or else the links won't show up at all. Don't use a color like #fff that will blend into the default background, unless you've changed it. Also, whenever you specify a foreground color using the color: property, specify a background color for those user's whose default background may be set to your foreground color. The text-decoration:none merely removes the customary underlining from the links, so skip that too unless you want the links not to be obvious to the users.
    - John
    ________________________

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

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

    Exclamation thanks, but 1 more bug...

    Thanks, this solved the link color issue. However, I have more more problem. When I load the page the sublinks are 'stacked' beneath the main tabs. Once you mouseover the tabs a few times, the menu looks like it should. How can I get the page to load with the sublinks not showing until mouseover?

    Thanks. Here is the test page: http://www.bilbyweb.com/test/test.htm

    any help is appreciated.
    Last edited by paulrobe; 02-08-2006 at 03:27 AM.

  4. #4
    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 may have have taken what I said about display:none; too much to heart or, you just forgot to keep this style declaration:

    Code:
    .tabcontent{
    display:none;
    }
    Whatever you style for the tabcontent links:

    Code:
    .tabcontent a{
    links styles go here
    }
    The tabcontent must be still set to display:none; otherwise, you will see one or all of the link sets until the menu is moused over once and the script takes over the styling dynamically, which is what is happeniing now. So, just add that block (first style block in this message) back in, and it will be fine.

    It is a matter of differentiating between styles applied to each individual link, and style for each link set.
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thanks.

    oh i see. thanks very much. works great!

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
  •