Results 1 to 3 of 3

Thread: Tab Content Script (v2.2)

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

    Default Tab Content Script (v2.2)

    script: Tab Content Script (v2.2)
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    Recently I used Tab Content Script (v2.2) on my website and I am very happy.

    I have a question about adjusting the width of the tab, the tab is as wide as the text. If a number of tabs to each other with different sizes, this is not pretty.

    How can I set a default size of eg 10 characters make.
    I have the document tabcontent.css .shadetabs try to include:
    - [width:10%;] or
    - [width:25px;]
    but that does not work.

    I hope someone can help me, thank you.

    To get an idea of what exactly I mean please visit:
    http://www.toncomputerjunkie.nl/deze/frameabc.htm

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

    Default

    On the page containing the vertical tabs where you wish their widths to be uniform, try adding the below to the HEAD section of your page, following the reference to tabcontent.css:

    Code:
    <style type="text/css">
    
    .shadetabs li a{
    display: block;
    width:100px;
    }
    
    </style>
    Setting the A element of each tab to display:block lets you adjust the width of the element.
    DD Admin

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script (v2.2)

    Fantastic, it works.
    I am very happy.

    Regards, Ton

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
  •