Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    CSS tabs with includes

    Ok here is the tabbing thing I would like to use (This is a test of it on my site)

    http://wrightnotleft.com/MyProjects/home.html

    for the active tab, the class="active"

    But the problem is, When I am going to use my tabs, they are going to be on the main index page and show on every page, and I am going to including the content in the <div content> using includes. But the problem is, how do I make it so it will take the make the current tab "active" on the tab bar?

    Thanks

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,826
    Thanks
    8
    Thanked 137 Times in 135 Posts
    http://www.alistapart.com/articles/keepingcurrent/

    or you can do it with css by giving the body tag an id like "home" and then doing your css like #home a.current etc...
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts
    any more suggestions?

    edit:

    read over

    http://www.alistapart.com/articles/keepingcurrent/

    I like it but kinda want that in reverse, were the pages are included and not the navigation
    Last edited by blu3t00th; 04-25-2008 at 05:02 PM.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,868
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Yes, look at this thread, Change link text style for current page.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New Coder
    Join Date
    Aug 2005
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts
    O great thats more what I was looking for, a css approch, because Im using a template system and Im trying to keep the php out of my template files.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •