Results 1 to 3 of 3

Thread: Tab Content Script alter the text style also?

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script alter the text style also?

    the script at:
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    how can i get it to change the font from normal to bold on the header tabs as you select them?

    Please help!

  2. #2
    Join Date
    Oct 2004
    Location
    Texas
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try replacing
    Code:
    #tablist li a.current{
    background: lightyellow;
    }
    with
    Code:
    #tablist li a.current{
    background: lightyellow;
    font-weight: bold;
    }
    This would change the font weight in the current clicked on tab.

    Also note, the font style in the script is already at a bold 12px Verdana. If you are using the default declarations, you'll have to remove the bold comment from the "#tablist" font area.
    Last edited by chinchilla2; 02-17-2006 at 05:29 PM.

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have tried but it doesn't seem to work like that.

    The one that has class="current" stays bold and the clicked one doesn't alter.

    Thanks for trying tho.

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
  •