|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DynamicMenuItemStyle override style (cursor:text)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;" Show quoteHide quote >My Text</a> 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 bradj***@hotmail.com wrote: Show quoteHide quote > 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;" >> My Text</a> >
How to deselect item on single select listbox?
Where in the viewstate is a GridView's rows? I really need to get this working...... Remove Dynamic User Controls from a collection link on an entire row in a datagrid dropdownlists, their items and viewstate control exposing collection. Gridview - Accessing a field value in current row Customizing a TreeNode's viewstate HTML editor for Safari browser |
|||||||||||||||||||||||