PC Review


Reply
Thread Tools Rate Thread

How to apply CSS to visited item in menu control?

 
 
Andrew Meador
Guest
Posts: n/a
 
      13th Oct 2009
I have a menu control that is formated with CSS. I have used the
*MenuItemStyle, *HoverStyle, & *SelectedStyle (* = Static and Dynamic)
properties to associate the appropriate CSS class to the menu items -
and these are all working great, but can't see how to set a visited
menu item style to a set off CSS properties.

Could someone exlpain how to do this using CSS with the menu control?

Thanks!
Andrew
 
Reply With Quote
 
 
 
 
Andrew Meador
Guest
Posts: n/a
 
      13th Oct 2009
Here's the CSS that's I have now:

..leftnav
{
float: left;
background-color: #ddd;
width: 200px;
margin-left: 100px;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
font-family: Sans-Serif;


..menuItem
{
border: 3px outset Sienna;
background-color: #006400;
font: 14px Arial;
color: White;
padding: 4px;
width: 190px;



}


..selectedMenuItem
{
border: 3px outset Coral;
background-color: #006400;
font: 14px Arial;
color: #FF7F50;
padding: 4px;
width: 190px;


}


..hoverMenuItem
{
border: 3px outset Yellow;
background-color: #006400;
font: 14px Arial;
color: Yellow;
padding: 4px;
width: 190px;


}


Here's the menu control code: (c#)
<div class="leftnav">
<asp:ContentPlaceHolder ID="LeftNavContent"
runat="server">
<asp:Menu ID="Menu1"
DataSourceID="srcSiteMap"
StaticDisplayLevels="1"
MaximumDynamicDisplayLevels="3"
DynamicPopOutImageUrl="~/Images/MenuPointer.bmp"
StaticPopOutImageUrl="~/Images/MenuPointer.bmp"
runat="server">
<StaticMenuItemStyle CssClass="menuItem" />
<DynamicMenuItemStyle CssClass="menuItem" />
<StaticHoverStyle CssClass="hoverMenuItem" />
<DynamicHoverStyle CssClass="hoverMenuItem" />
<StaticSelectedStyle CssClass="selectedMenuItem" />
<DynamicSelectedStyle CssClass="selectedMenuItem" /



</asp:Menu>
<asp:SiteMapDataSource ID="srcSiteMap"
ShowStartingNode="false" runat="server" />
</asp:ContentPlaceHolder>
</div>

Hopefully this help in your suggestions!


Thanks!
Andrew
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a Menu Control submenu item? jobs Microsoft ASP .NET 0 25th Oct 2007 03:15 PM
Getting a control ID from Item in SUB menu mcslemon@gmail.com Microsoft Outlook VBA Programming 3 27th Jun 2007 02:21 PM
How do I set selected Menu item in a asp:menu control? goran.strand@gmail.com Microsoft ASP .NET 0 22nd Dec 2006 08:05 AM
menu item user control bill yeager Microsoft ASP .NET 2 30th Mar 2005 03:19 PM
Control ID for Menu item... Justin Conger Microsoft Outlook 1 2nd Feb 2004 04:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 PM.