Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Breadcrumbs align right of menu

Breadcrumbs align right of menu

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminai-codingquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve van Niman
    wrote on last edited by
    #1

    Wow, asp:Menu is a nice feature, but trying to get it to behave the way you want can be a hair pulling mind numbing experience. For the most part, finally solved all the link color overrides on the static portion of the menu, but now I've added breadcrumbs via the asp:SiteMapPath control, but the control is displaying to the right of the menu on the same line. I even added hard br's and surrounded the asp:SiteMapPath in it's own div, but still is displayed just to the right of the menu. <form class="nt ac" id="wrapper" runat="server"> <div id="ParentMenu" class="MainMenu" runat="server" > <asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" StaticDisplayLevels="2" OnMenuItemDataBound="MyMenu_MenuItemDataBound" runat="server"> <StaticMenuItemStyle CssClass="stMenu" /> <StaticHoverStyle CssClass="stHover" /> <DynamicMenuItemStyle CssClass="dyMenuItem" /> <DynamicHoverStyle CssClass="dyHover" /> </asp:Menu> </div><br /><br /> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> <div class="al"> <asp:SiteMapPath ID="SiteMapPath1" CssClass="smp" runat="server" /> </div> It's almost as if the HTML code generation of the menu is not closing a div or table block. Any ideas?

    N S 2 Replies Last reply
    0
    • S Steve van Niman

      Wow, asp:Menu is a nice feature, but trying to get it to behave the way you want can be a hair pulling mind numbing experience. For the most part, finally solved all the link color overrides on the static portion of the menu, but now I've added breadcrumbs via the asp:SiteMapPath control, but the control is displaying to the right of the menu on the same line. I even added hard br's and surrounded the asp:SiteMapPath in it's own div, but still is displayed just to the right of the menu. <form class="nt ac" id="wrapper" runat="server"> <div id="ParentMenu" class="MainMenu" runat="server" > <asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" StaticDisplayLevels="2" OnMenuItemDataBound="MyMenu_MenuItemDataBound" runat="server"> <StaticMenuItemStyle CssClass="stMenu" /> <StaticHoverStyle CssClass="stHover" /> <DynamicMenuItemStyle CssClass="dyMenuItem" /> <DynamicHoverStyle CssClass="dyHover" /> </asp:Menu> </div><br /><br /> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> <div class="al"> <asp:SiteMapPath ID="SiteMapPath1" CssClass="smp" runat="server" /> </div> It's almost as if the HTML code generation of the menu is not closing a div or table block. Any ideas?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You may want to look at CSS Friendly Adapter[^] or override the rendering of the menu (can't remember the event off hand, onmenubind ?)


      only two letters away from being an asset

      S 1 Reply Last reply
      0
      • N Not Active

        You may want to look at CSS Friendly Adapter[^] or override the rendering of the menu (can't remember the event off hand, onmenubind ?)


        only two letters away from being an asset

        S Offline
        S Offline
        Steve van Niman
        wrote on last edited by
        #3

        Mark, Thanks for the direction push. Changed the display: table; to display: block; and the breadcrumb came around, but was centered, even though in the CSS I specified text-align: left on the SiteMapPath. Change the CSS associated with the SiteMapPath to display: block; and all is well. I did try inserting extra close tags for div and table, but that had no effect. Didn't think I would have to look at the generated code as much as I did, but seems only way to really track down translation... Could be, I don't 100% understand the whole asp:Menu control yet... Anyway - off to the next hurdle...

        1 Reply Last reply
        0
        • S Steve van Niman

          Wow, asp:Menu is a nice feature, but trying to get it to behave the way you want can be a hair pulling mind numbing experience. For the most part, finally solved all the link color overrides on the static portion of the menu, but now I've added breadcrumbs via the asp:SiteMapPath control, but the control is displaying to the right of the menu on the same line. I even added hard br's and surrounded the asp:SiteMapPath in it's own div, but still is displayed just to the right of the menu. <form class="nt ac" id="wrapper" runat="server"> <div id="ParentMenu" class="MainMenu" runat="server" > <asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" StaticDisplayLevels="2" OnMenuItemDataBound="MyMenu_MenuItemDataBound" runat="server"> <StaticMenuItemStyle CssClass="stMenu" /> <StaticHoverStyle CssClass="stHover" /> <DynamicMenuItemStyle CssClass="dyMenuItem" /> <DynamicHoverStyle CssClass="dyHover" /> </asp:Menu> </div><br /><br /> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> <div class="al"> <asp:SiteMapPath ID="SiteMapPath1" CssClass="smp" runat="server" /> </div> It's almost as if the HTML code generation of the menu is not closing a div or table block. Any ideas?

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          I dont know the solution of the problem but if u need to usee css friendly adapters add .browser file in your solution and delete the code in .browser file add the following code

          <!--
          You can find existing browser definitions at
          <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
          -->
          <browsers>
          <!----><browser refID="safari1plus">
          <!----><controlAdapters>
          <adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
          </controlAdapters>
          </browser>
          </browsers>

          it worked for me in the allignment of google browser

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups