I am trying to add a 2nd menu control in the same line with an existing one but I can't manage to do it.
<div class="clear hideSkiplink">
<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="SmallMenu" runat="server" CssClass="smallMenu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Settings.aspx" Text="Settings"/>
<asp:MenuItem NavigateUrl="~/Admin.aspx" Text="Admin"/>
</Items>
</asp:Menu>
</div>
Tried to format it using CSS but it's not working. The 2nd menu appears in a new line. What am I doing wrong here?
div.menu
{
padding: 4px 0px 4px 8px;
float:left;
width:500px;
}
div.smallMenu
{
padding: 4px 8px 4px 0px;
width: 300px;
float: right;
}
EDIT: I can make them appear in the same line if I put them inside divs and float the 2nd one to the right but now half the right menu appears to the right (outside) of the page.