...

View Full Version : CSS tabs with includes



blu3t00th
04-25-2008, 12:19 AM
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

harbingerOTV
04-25-2008, 12:58 AM
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...

blu3t00th
04-25-2008, 05:57 PM
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

abduraooft
04-25-2008, 06:05 PM
Yes, look at this thread, http://www.codingforums.com/showthread.php?t=122490

blu3t00th
04-25-2008, 06:21 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum