Hi, bit of a novice with CSS. I've successfully added a hover nav bar to my custom theme. Now I just need the nav button to remain active once the page loads. Any help would be much appreciated.
I've created a custom Nav bar and added it to my header.php file:
<div class="clear"></div>
<div id="navmenu" class="col-full">
<table width="950" height="101" border="0" cellpadding="0">
<tr>
<th scope="col"><a href="http://cashcall.tv/">Description text that will not be displayed</a><span></span></th>
<th scope="col"><th scope="col"><a href="http://cashcall.tv/?page_id=2">Description text that will not be displayed</a><span></span></th>
<th scope="col"><a href="http://cashcall.tv/?page_id=4">Description text that will not be displayed</a><span></span></th>
<th scope="col"><a href="http://cashcall.tv/?page_id=21">Description text that will not be displayed</a><span></span></th></table></div>
And styled using CSS:
#navmenu {
width:1001px;
height:103px;
z-index:1;
background-image:url(http://cashcall.tv/wp-content/uploads/2011/08/CCnavbottomFINAL.jpg);
background-repeat:no-repeat;
}
#roll_one {display:block; width:250px; height:103px; text-indent:-999em; background:url("http://cashcall.tv/wp-content/uploads/2011/08/nonhover.jpg");}
#roll_one:hover {background:url("http://cashcall.tv/wp-content/uploads/2011/08/hover.jpg");}
#roll_two {display:block; width:250px; height:103px; text-indent:-999em; background:url("http://cashcall.tv/wp-content/uploads/2011/08/nonhover.jpg");}
#roll_two:hover {background:url("http://cashcall.tv/wp-content/uploads/2011/08/hover.jpg");}
#roll_three {display:block; width:250px; height:103px; text-indent:-999em; background:url("http://cashcall.tv/wp-content/uploads/2011/08/nonhover.jpg");}
#roll_three:hover {background:url("http://cashcall.tv/wp-content/uploads/2011/08/hover.jpg");}
#roll_four {display:block; width:250px; height:103px; text-indent:-999em; background:url("http://cashcall.tv/wp-content/uploads/2011/08/nonhover.jpg");}
#roll_four:hover {background:url("http://cashcall.tv/wp-content/uploads/2011/08/hover.jpg");}
#navmenu .current_page_item {background:url("http://cashcall.tv/wp-content/uploads/2011/08/nonhover.jpg");}
{
All that's missing is the current page code which, despite trying lots of different "class=" ".current_page" options I haven't been able to implement. Many thanks for your help!