How to make transparent the text area in dynamic menu item ?

3 posts, 0 answers
  1. Damien
    Damien avatar
    17 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    Hello,

     I used an asp:menu to obtain a menu as in the attached file menu1.png, with green background color if :hover

    I would like to replace by a RadMenu control. But I can't obtain a green background for the dynamic menu item.
    There is always a grey text area in front of the green background (see attached file menu2.png).
    Is there a possibility to make it transparent ?

    Thanks by advance.

    Damien
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2012 Link to this post

    Hi Damien,

    Try overriding the default CSS as follows to achieve your scenario.

    CSS:
    <style type="text/css">
        .RadMenu_Default .rmGroup a.rmLink:hover .rmText
        {
            background-color:Green !important;
            background-image:none !important;
        }
    </style>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Damien
    Damien avatar
    17 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post

    Hi,

    It works perfectly. Thank you very much.

    As I have already a green background, I set the background-color to transparent.

    Thanks again.

    Damien
Back to Top