Thanks for the pointers bubblesnout. I took your advice about adding a class instead of changing the li's id
The code below is a sample of the navigation from the master page. Clicking on a link redirects the user to the associated page
I'm still having problems adding class="page_selected" to the li tag of the current selected page.
Any ideas as to how I could add some code to the master.vb file to add this code automtically
CSS
<style type="text/css">
#nav li{float:left; display:inline;}
#nav a{display:block; height:40px;}
#page1{background:url(i/menu-1.gif); width:100px;}
#page2{background:url(i/menu-2.gif); width:100px;}
#page3{background:url(i/menu-3.gif); width:100px;}
#page1:hover,#page2:hover,#page3:hover{background-position:0 -40px;}
#page1.page_selected,#page1.page_selected:hover,#page2.page_selected,#page2.page_selected:hover,#page3.page_selected,#page3.page_selected:hover{background-position:0 -80px;}
</style>
CODE
<div id="nav">
<ul>
<li id="page1" runat="server"><a href="page1.aspx" mce_href="page1.aspx">Page 1</a></li>
<li id="page2" runat="server"><a href="page2.aspx" mce_href="page2.aspx">Page 2</a></li>
<li id="page3" runat="server"><a href="page3.aspx" mce_href="page3.aspx">Page 3</a></li>
</ul>
</div>