SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Nov 2013
    0 Post(s)
    0 Thread(s)

    Asp Menu Adds its own classes

    I would like to make my asp menu look just like this - Fiddle

    <div id="container">
        <asp:Menu ID="menubar" runat="server" Orientation="horizontal" 
         includestyleblock="false" onmenuitemdatabound="somefunction"
    <asp:sitemapdatasource id="sitemapdatasource1" runat="server" 
    The css is exactly the same as in the fiddle.

    Rendered HTML:

    <div id="container">
      <a href="#ContentPlaceHolder1_menubar_SkipLink"><img 
       alt="skip navigation links" src="" width="0" height="0" 
     <div id="contentplaceholder_menubar">  
     <ul class="level1">
      <li><a class="level1 selected" href="/Home.aspx"</a></li>
         <ul class="level2">
              <ul class="level3">
                <li a class="level3" href="">Men</a></li>
    ISSUES: Quite a few. To start with, you can see, the menu applies its own classes -level1,2,3. (I suspect this could be the reason for all these)

    Why is there an uninvited padding inside the 'container'. I dont see it in the fiddle though. As I said, I am using exactly the same css.(see pic)

    The animations for the submenu & sub-sub menus are not applying.

    Plz check the fiddle. When hovered on submenu items, there is a light blue bg for them. But here, if i hover over 'Nature', i get that bgcolor, but after that when I hover over 'People' no bgcolor for it and its sub-sub menus. Hope im making sense.

    I tried writing classes for level1 etc but its so hard as to what goes where. And Also setting RenderingMode property to list, default and table.
    Attached Images Attached Images

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts