asp menu styling

Posted on 2011-10-27
Last Modified: 2012-05-12
Hi experts,

attached is an aspx file which contains asp menu. i this have used styles but same are not getting applied to the menu also  there is an icon for each menu which sticked to the menuname which i want to seperate i.e. give some padding between the two

Please help me on this
Question by:vikas_nm
    LVL 7

    Expert Comment

    I've tried the code below and added a screenshot of what I see - is this what you're hoping for?

    If not, where is it going wrong? menu that I see with the attached code
    <head id="Head1" runat="server">
    <style type="text/css"> 
    .menu_item { text-decoration:none; text-align:left;
                color:#008394; border:1px solid #682c00; 
                font: 12px Verdana; width:160px; margin:1px; }
          .menu_hover { color:#fff; background:#008394; }
        <form id="form1" runat="server">
    <asp:Menu ID="menu1" runat="server" Orientation="vertical" Visible="true"
        StaticDisplayLevels="1" StaticSubMenuIndent="0">
           <StaticMenuItemStyle CssClass="menu_item" />
           <StaticSelectedStyle CssClass="menu_item" />
           <StaticHoverStyle CssClass="menu_hover" />
    </html> [embed=image 517577]

    Open in new window

    LVL 7

    Expert Comment

    I was hovering over the third item when the shot was taken, and had repointed the page_load code to the demo pictures in Win 7 for the icons :)
    LVL 7

    Accepted Solution


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now