Hi,
I have the following masterpage template in my Kentico site:
<div id="container">
<cc1:CMSWebPartZone ID="zoneTop" runat="server" />
<div id="wrapper">
<div id="header">
<ul>
<li class="home"><a href="home.aspx">home</a></li>
<li class="contact"><a href="contact.aspx">contact</a></li>
<li class="products"><a href="products.aspx">products</a></li>
<li class="services"><a href="services.aspx">services</a></li>
</ul>
</div>
<div id="content1">
<cc1:CMSWebPartZone ID="zoneContent" runat="server" />
</div>
<div id="footer">
<cc1:CMSWebPartZone ID="zoneBottom" runat="server" />
</div>
</div>
</div>
and the css in a stylesheet:
#header {
display:block;
overflow:hidden;
width:960px;
height:174px;
background:url(logo01.png) no-repeat -2px 14px;
}
#header ul {
display:block;
overflow:hidden;
float:right;
width:625px;
height:38px;
}
#header ul li {
display:block;
overflow:hidden;
float:right;
margin-left:2px;
}
#header ul li.home a {
display:block;
overflow:hidden;
background:url(nav_home.png) no-repeat;
width:69px;
height:38px;
text-indent:-900px;
}
#header ul li.home2 a {
display:block;
overflow:hidden;
background:url(nav_homeH.png) no-repeat;
width:69px;
height:38px;
text-indent:-900px;
}
#header ul li.home a:hover, #header ul li.home a:active {
background:url(nav_homeH.png) no-repeat;
}
#header ul li.services a {
display:block;
overflow:hidden;
background:url(nav_services.png) no-repeat;
width:83px;
height:38px;
text-indent:-900px;
}
#header ul li.services a:hover, #header ul li.services a:active {
background:url(nav_servicesH.png) no-repeat;
}
#header ul li.products a {
display:block;
overflow:hidden;
background:url(nav_products.png) no-repeat;
width:87px;
height:38px;
text-indent:-900px;
}
#header ul li.products a:hover, #header ul li.products a:active {
background:url(nav_productsH.png) no-repeat;
}
#header ul li.contact a {
display:block;
overflow:hidden;
background:url(nav_contact.png) no-repeat;
width:82px;
height:38px;
text-indent:-900px;
}
#header ul li.contact a:hover, #header ul li.contact a:active {
background:url(nav_contactH.png) no-repeat;
}
#header ul li.contact2 a {
display:block;
overflow:hidden;
background:url(nav_contactH.png) no-repeat;
width:82px;
height:38px;
text-indent:-900px;
}
The stylesheet and html menu is taken from our .html mockup and when a user clicks on a mneu item and is taken to another page that menu item gets highlighted. How do I achieve this when I now will use a masterpage in Kentico? The menu looks fine but the menu items (obviously) doesn't get highlighted when active.
How do I easiest covert my code to a menu I can use in Kentico?
Thanks in advance.