• hello
    i have this
    http://i48.tinypic.com/2i6c4ys.jpg

    this hasn’t been done by adding a page i simply put the code in header.php
    but i want that only the forums tab to have a different color, let’s say glossy red ..
    how do i do that ?
    i looked in the css but didn’t find anything in header section 🙁
    or maybe i missed-looked .. 🙁

Viewing 9 replies - 1 through 9 (of 9 total)
  • can’t tell from a picture … (a link to your site?)
    however the tabs are likely to be graphics,
    so you could start with giving a special class to the ‘forum’ list element, reproduce the graphic elements in crimson red, and then start styling it analog to the existing ones.

    if you are planning to do more theme adaptation, downlowd the developer add-on for firefox. it is a very good tool to inspect html elements in your browser, and see which styles effect what on the page, and try changes online 😉

    Thread Starter denede19

    (@denede19)

    i did looked in the css
    i can’t find anything
    i have web developer addon
    the site is http://www.animelovers-fansub.com
    the forum tab is hidden for the moment

    your style.css on line 136

    Thread Starter denede19

    (@denede19)

    h2 a:hover {

    color: #0C72A2;

    text-decoration: none;

    }

    this ?

    first, you need to copy two graphic files, save them under the new name ‘forum_navtabl.png’ and ‘forum_navtabr.png’ resp. and turn them into red graphics:
    /images/navtabl.png -> /images/forum_navtabl.png –
    and
    /images/navtabr.png -> /images/forum_navtabr.png –
    these are the backgrounds of the tabs.

    then you need to edit your line with the ‘forum’ link, (what it does, is to give this link the class=”forum” with which you can style in style.css), and remove the commentation:
    <li class="page_item forum"><a href="http://www.animelovers-fansub.com/forum" title="Forum"><i>Forum</i></a></li>

    next copy and adapt this part of style.css, so that these lines are added to style.css:

    #nav li.forum {
    	float: left;
    	height: 30px;
    	background: url(images/forum_navtabr.png) top right no-repeat;
    	margin: 0 3px;
    	white-space: nowrap;
    }
    
    #nav .page_item.forum a{
    	color: #FFFFFF;
    	display: block;
    	background: url(images/forum_navtabl.png) top left no-repeat;
    	text-decoration: none;
    	padding: 0px 10px 0px 10px;
    	font: bold 12px Arial, Helvetica, sans-serif;
    	line-height: 30px;
    }
    
    #nav li:hover.forum {
    	background-position: 100% -36px;
    
    }
    #nav .page_item.forum a:hover {
    	background-position: 0px -36px;
    	border: none;
    }

    this should be all, good luck 😉

    Thread Starter denede19

    (@denede19)

    hmm ..
    let’s try 😀
    it works ..
    but it’s a square ..
    it hasn’t the same shape as the others and the same effects

    well done so far 😉
    if you look at the original images – they have shading and round corners.
    you need to make the new images exactly the same, just with a different color. and keep the blue-background-rounded-corners.

    Thread Starter denede19

    (@denede19)

    hmmm
    let’s see 😀
    nice …
    but still not the same
    look ..
    it seems it is hallow .. not “full” like the others
    and when my cursor is over the tab is the same .. it doesn’t change ..

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Change tab color’ is closed to new replies.