Hi Chris,
what if all the menu items are grouped together? How do I assign diff colors then?
Here's the menu section from my style css -
/* =Menu
-------------------------------------------------------------- */
#access {
font-size:11px;
background:#B5D1EA;
border-top:1px solid #CADEF0;
margin-top:-1px;
}
.skip-link {
display:none;
}
#menu {
padding:7px 0 8px 0;
overflow:hidden; /* clears the inner float */
}
#menu ul {
margin:0;
list-style:none;
clear:both;
}
#menu ul ul {
display:none;
}
#menu li {
display:inline;
}
#menu a {
display:block;
float:left;
margin:0 10px 0 0;
padding:1px 6px;
background:#87B5DD;
color:#fff;
border-top:1px solid #6DA5D6;
text-decoration:none;
}
#menu a:hover {
background:#5C9BD1;
color:#fff;
border-color:#3B86C7;
}
#menu .current_page_item a {
background:#5C9BD1;
color:#fff;
border-color:#3B86C7;
}
#menu a:focus {
background:#4887BD;
color:#fff;
border-color:#2772B3;
}
By the way, the code I am using in my header.php to define the menu items in my nav bar -
<div id="menu">
<ul>
<li class="page_item"><a href="http://xyz.com" title="Home">Home</a></li>
</ul>
</div>
So if I want to add another menu item to the nav bar, I simply add another line, like this -
<div id="menu">
<ul>
<li class="page_item"><a href="http://xyz.com" title="Home">Home</a></li>
<li class="page_item"><a href="http://xyz.com/about" title="About">About</a></li>
</ul>
</div>
How do I get the 2nd menu item - the 'About' menu item - to be a diff color from the 1st menu item (the 'Home' menu item)?
Thanks again for all your help Chris :)
Knight