Results 1 to 4 of 4

Thread: Help with CSS Tabs (Tab Content Script (v 2.2))

  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with CSS Tabs (Tab Content Script (v 2.2))

    1) Script Title:
    Tab Content Script (v 2.2)

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

    3) Describe problem:

    I have it running here:
    http://azfans.com/tabs/tabs.php

    but am having one heck of a time styling the tabs. It's almost like there is some styling built into the script. I am having to use negative margins to get it to look somewhat right, and am not sure why.

    Can someone please help? The bar to the right of "More" should be the same height and color as the rest of the tabs.

    Also, the margin around the entire tabs and content box should be removed.

    Help is greatly appreciated!

    Thank you,

    Jon

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

    Default

    The unequal height between the tabs and their parent container is basically due to the CSS for the Shade Tabs itself. While you can tweak the CSS to try and make it behave the way you want, an easier way perhaps is just to swap out that CSS with something you know comes close to what you have in mind already.

    Looking at your page, Matt Tabs Menu seems like a good fit. Using it, first, replace the original tabcontent.css file with the attached, then, replace the HTML for your main tabs with the slightly altered one below:

    Code:
    <div class="mattblacktabs">
    <ul id="countrytabs">
    <li><a href="#" rel="country1" class="selected">All</a></li>
    <li><a href="#" rel="country2">Suns</a></li>
    <li><a href="#" rel="country3">D-Backs</a></li>
    <li><a href="#" rel="country4">Cardinals</a></li>
    <li><a href="http://www.azfans.com/forums">More</a></li>
    </ul>
    </div>
    DD Admin

  3. #3
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! I noticed that this seams to be just a nav bar, the content doesn't change before the tabs...

    I am not able to try the code right now, but it should work the same way, displaying the content 1, content 2, etc. for each tab?

    Thanks,

    Jon

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

    Default

    I am not able to try the code right now, but it should work the same way, displaying the content 1, content 2, etc. for each tab?
    Yep, the modification above merely replaces the CSS tabs used by Tab Content script with the new one.
    DD Admin

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
  •