
Originally Posted by
Dazza30
It turns out i still need to look into this as a solution.
So supposing id made new versions of the background images how do i apply them to each tab ?
Sure. Using the first example on the Script Page (the green shaded tabs) as an example, lets say you wish the 2nd tab to be blue shaded instead, using an alternate version of the green images (2 in total, one for normal, the other, when the tab is selected), you'd just do this:
1) Inside tabcontent.css, at the very bottom, add the new CSS rules to be applied to the 2nd tab that differs from the default, for example:
Code:
#tab2style a{
background: white url(shadeblue.gif) top left repeat-x;
}
#tab2style a.selected{ /*selected main tab style */
background-image: url(shadeblueactive.gif);
}
Then in your HTML, apply this style to the 2nd tab like so:
Code:
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Tab 1</a></li>
<li id="tab2style"><a href="#" rel="country2">Tab 2</a></li>
<li><a href="#" rel="country3">Tab 3</a></li>
<li><a href="#" rel="country4">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
Bookmarks