469,936 Members | 2,466 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

ASP:Menu

I am have a ASP:Menu with static and dynamic menu items. Each of the static
items has dynamic menu items. If the user clicks on a static menu item,
which has no click event, then menu item changes to a different color which
makes it dissapear. It only becomes visable if I move my cursor over the
static menu item. I changed my page link properties for "a:visited" and
change the color to the value I needed, and this cleared up the problem, but
create another, as all other links absorb that same characteristic, which
makes those links disappear.

When I look at the HTML code which is generated, I see that each of the menu
items is an anchor tag "<a" with a class identifier of "ctl00_mnuLeftMenu_1
ctl00_mnuLeftMenu_3". I then created "css" statements that looked like the
following:

a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:link { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:hover { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:visited { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:active { text-decoration: none;
font-weight:bold; color: White; }

Hoping that after someone selects it, it will remain "white" in color. When
I desplay the menu, before I do anything, all the menu items are not White,
but are a color which makes them invisible on the screen. I also have the
following to get the coloring the way I want it.
<StaticMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" BackColor= "#2D7335" ForeColor="White" Font-Bold="true"
/>
<StaticHoverStyle BackColor="White"
ForeColor="White" />
<StaticSelectedStyle BackColor="#2D7335"
ForeColor="white" Font-Bold="true" />
<DynamicHoverStyle BackColor="#284E98"
ForeColor="OrangeRed" />
<DynamicMenuStyle BackColor="#629C4F"
ForeColor="White" />
<DynamicSelectedStyle BackColor="#507CD1"
ForeColor="White"/>
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" ForeColor="black" />
So am I missing a setting somewhere? It appears that the value which is
specified for the page "a:visited" will control the link color no matter what.

Thanks in advance for your assistance!!

May 1 '07 #1
0 1472

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Chuck Hartman | last post: by
7 posts views Thread by tfsmag | last post: by
4 posts views Thread by Ben | last post: by
reply views Thread by jason | last post: by
2 posts views Thread by jason | last post: by
2 posts views Thread by Kevin L. Kitchens | last post: by
2 posts views Thread by Steve Richter | last post: by
3 posts views Thread by win | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.