asp.net - How to make 2 asp:Menu control render in the same line? -
I am trying to add a second menu control to a second row with an existing row but I do Can not manage for Tried to format it using CSS but it is not working. The second menu appears in a new line what I am doing wrong here? It seems like you have to debug something like using your browser's client-side debugging tool This is what you describe (the division of the menu on the right), as if the CSS Warrenis hierarchy is somewhat above the influence of that div's position. One more thing you can try is to get more nest of the menu: ETA: A post with a similar issue is the top 2 answers (7 and 5 digits respectively, in the form of this writing) There are some things you can try and do some other link & lt; Div class = "hidden skeptical" & gt; & Lt; ASP: menu id = "navigation menu" runat = "server" cssClass = "menu" enabled widget = "false" styleball = "wrong" orientation = "horizontal"> gt; & Lt; Items & gt; & Lt; Asp: MenuItem NavigateUrl = "~ / Default.aspx" text = "home" /> & Lt; Asp: MenuItem NavigateUrl = "~ / about.aspx" text = "About" /> & Lt; / Item & gt; & Lt; / ASP: Menu & gt; & Lt; ASP: Menu id = "small menu" run = "server" CssClass = "smallMenu" enabled ViewState = "false" includes styleballcock = "wrong" orientation = "horizontal" & gt; & Lt; Items & gt; & Lt; Asp: MenuItem NavigateUrl = "~ / Settings.aspx" text = "Settings" /> & Lt; Asp: MenuItem NavigateUrl = "~ / Admin.aspx" text = "admin" /> & Lt; / Item & gt; & Lt; / ASP: Menu & gt; & Lt; / Div & gt;
div.menu {padding: 4px 0px 4px 8px; Swim left; Width: 500px; } Div.smallMenu {padding: 4px 8px 4px 0px; Width: 300px; float right; } Edit: I can reveal them in the same line if I put them into the divis and float the other one on the right but now half right (right) Appears on
& lt; Div & gt; & Lt; DIV style = "float: left;" & Gt; & Lt; DIV style = "float: true;" & Gt; & Lt; ASP: Menu / & gt; & Lt; / Div & gt; & Lt; ASP: Menu / & gt; & Lt; / Div & gt; & Lt; / Div & gt;
Comments
Post a Comment