Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do i change tab colour
Old 06-07-2009, 07:19 PM How do i change tab colour
Average Talker

Posts: 15
Trades: 0
www.elitetradesmen.com

Above is a link to my site, in respects of design i think its pretty much done. The one thing i'm struggling with is that i want the tabs at the top which show the links to pages to change colour depending on what page your on. So lets say i'm on the area page the area tab at the top will be a dark grey the same as the page and all other tabs will be a lighter colour.

One problem i see though is that not all my pages have a tab at the top. How do i get round this as when i'm on when of these pages i'm not sure what to do with the tabs.
speed1972 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-07-2009, 09:34 PM Re: How do i change tab colour
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
Have you tried giving each tab an id and use pseudo classes?

PS: in the book "Bulletproof Web Design" is a nice case on how to do tabbed pages.
World is offline
Reply With Quote
View Public Profile
 
Old 06-08-2009, 03:40 AM Re: How do i change tab colour
skywind's Avatar
Skilled Talker

Posts: 74
Trades: 0
define in style file (css)
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
skywind is offline
Reply With Quote
View Public Profile Visit skywind's homepage!
 
Old 06-08-2009, 10:31 AM Re: How do i change tab colour
bindassdelhiite's Avatar
Novice Talker

Posts: 5
Name: Bindass Delhiite
Location: New Delhi, India
Trades: 0
Better assign each page a unique ID for its <body> tag and also assign unique Ids for Tab Links and assign a common CSS class for Tab Links.

After doing that declare different colors for your tabs which are particular to their page, that is, their <body> Ids.

For example in your CSS stylesheet you may code like this..

Code:
a.tab-links { color: #FFFFFF; } /* defines same color for all the tab links */

body#home a#home-tab { color: #333333; } /* define Gray color for HOME link only on Home Page */

body#quote a#quote-tab { color: #333333; } /* define Gray color for SUBMIT QUOTE link on Submit Quote Page */
and so on..

I hope that this will be helpful to you.

Thanks,
Bindass Delhiite

enjoy
bindassdelhiite is offline
Reply With Quote
View Public Profile Visit bindassdelhiite's homepage!
 
Old 06-08-2009, 05:29 PM Re: How do i change tab colour
Average Talker

Posts: 15
Trades: 0
Still trying to work out how to make my tabs stand out when i'm on a certain page. Here is the code i've come up with but i've clearly done something wrong as it doesn't work.

css.

#nav a {
background-image:url(images/menu.gif);
width:90px;
height:19px;
display:inline;
float:left;
font-family: Verdana;
font-size: 10px;
text-align:center;
padding-top:6px;
text-decoration:none;
color:#e9e4d0;
font-weight:bolder;
}

#nav a.current {
background-image:url(images/menu2.gif);
color:#918A70;
}

#nav a.current:hover {
color:#918A70;
}


html.

<div id="wrapper">
<h1>Elite tradesmen</h1>
<div id="nav">
<a href="index.html">Home</a>
<a href="quotes.html">Submit Quote</a>
<a class="menu2" href="registration.html">Registration</a>
<a href="policies.html">Our Policies</a>
<a href="contact1.html">Contact Us</a>
</div>
speed1972 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do i change tab colour
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63377 seconds with 12 queries