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 & 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;

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?

  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   

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:

  & 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;   

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

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -