Click here to Skip to main content
15,908,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to place the following two Menu controls side by side on my master page, which is just not happening, they get aligned one below another how do i accomplish this?
the reason i am using two controls instead of one is because I need to hide one of them at code behind at runtime:::


XML
<asp:Menu ID="NavigationMenu" runat="server"  CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                  <Items>
                      <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                      <asp:MenuItem  NavigateUrl="~/About.aspx" Text="About"/>
                  </Items>
              </asp:Menu>
                       <asp:Menu ID="NavigationMenu2" runat="server"  CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                  <Items>
                      <asp:MenuItem NavigateUrl="~/FAQ.aspx" Text="FAQ"/>
                      <asp:MenuItem  NavigateUrl="~/Contact.aspx" Text="Contact Us"/>
                  </Items>
              </asp:Menu>


thanks
Chetan.
Posted
Updated 13-May-11 11:01am
v2
Comments
Fabio V Silva 13-May-11 17:01pm    
Edited for formatting.

1 solution

Hi Chetan,

Could you just put them in a table? <table><tbody><tr><td>menu</td><td>menu</td></tr></tbody></table> ?
 
Share this answer
 
Comments
cnjadhav 16-May-11 9:52am    
thanks, a table works.. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900