DynamicMenuItemStyle override style (cursor:text)

Discussion in 'ASP .Net Web Controls' started by bradjoss@hotmail.com, Jan 4, 2006.

  1. Guest

    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>
    , Jan 4, 2006
    #1
    1. Advertising

  2. Matt Sollars Guest

    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


    wrote:
    > 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>

    >
    Matt Sollars, Jan 23, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,313
    Bruce Barker
    Apr 5, 2005
  2. invy
    Replies:
    4
    Views:
    387
    CBFalconer
    Dec 28, 2006
  3. dmaziuk
    Replies:
    3
    Views:
    568
    Chris Gonnerman
    Jan 25, 2011
  4. Ken Varn
    Replies:
    0
    Views:
    440
    Ken Varn
    Apr 26, 2004
  5. nhwilly

    DynamicMenuItemStyle - Making the background Transparent

    nhwilly, Jun 1, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    212
    nhwilly
    Jun 1, 2006
Loading...

Share This Page