ASP:Menu

G

Guest

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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,743
Latest member
WoodrowMea

Latest Threads

Top