Results 1 to 3 of 3

Thread: tab content script

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default tab content script

    1) Script Title:
    tab content script
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tabcontent.htm
    3) Describe problem:
    ive got the tabs working perfectly except i do not understand how to use the .gif images for the tab highlite affect. i would also like to be able to resize the tab content box. i have been searching for the area of code that controls that. even in the .js file and .css. someones help would be greatly appreciated.
    thanks in advance, uzirdotcom

  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

    From tabcontent.css - the highlight image:

    Code:
    .shadetabs li.selected a{ /*selected main tab style */
    background-image: url(shadeactive.gif);
    border-bottom-color: white;
    }
    The tab content box dimensions:

    Code:
    .tabcontentstyle{ /*style of tab content oontainer*/
    border: 1px solid gray;
    width: 450px;
    margin-bottom: 1em;
    padding: 10px;
    }
    You can add a height property/value pair to the above if you like but, it is often good to allow the container to resize its height to its contents. Odd things will happen if there is more content than will fit in the set width X the set height.
    - John
    ________________________

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

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

    Red face im just learnin dhtml

    thanks for the scripts. i figured it out. thanks a lot. really appreciated

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
  •