DynamicMenuItemStyle override style (cursor:text)

B

bradjoss

I am using the DynamicMenuItemStyle element and all seems to be going
well, except that I have a custom CSSClass associated with the item
that has styles being overwritten by the default style of the item. In
the case below, this is the code that is ultimately generated. My
style (DynamicMenuItemStyle) has a specification for "cursor: hand;",
yet, since there is an auto style added (cursor:text;), it overrides my
style. How can I prevent the control from adding it's default style
attribute?

<a
class="ctl00__MainMenu_1
DynamicMenuItemStyle
ctl00__MainMenu_6"
href="#"
style="border-style:none;font-size:1em;cursor:text;"
 
M

Matt Sollars

Hello.

I suggest that you make your style's cursor definition important. That
will make it override the auto-generated one.

..DynamicMenuItemStyle {
cursor: hand !important;
...
}

I hope this helps out!


Regards,

Matt
 

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

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top