1
Answer

How to give space between menu in asp.net?

karthik jogaian

karthik jogaian

9y
3k
1
I am designing my master page. I used menu control in asp.net. But i am unable to provide space. Also I used  home ,contact us,about us buttons.I want button in vertical and space between them. This is the code :
 
<form id="form1" runat="server">
<div>
<div class="image1">
<asp:Image ID="Image1" runat="server" ImageUrl="../Images/logolibrary.jpg" />
</div>
<table id="table">
<tr>
<td class="menucontrol">
<asp:Menu ID="Menu1" StaticMenuItemStyle-ItemSpacing="5px" runat ="server">
<Items>
<asp:MenuItem NavigateUrl="~/Home.aspx" ImageUrl="../Images/homepagebutton.jpeg" ></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/AboutUs.aspx" ImageUrl="../Images/aboutusbutton.jpeg" ></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/SuggestionBox.aspx" ImageUrl="../Images/suggestionboxbutton.jpeg" ></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/ContactUs.aspx" ImageUrl="../Images/contactusbutton.jpeg" ></asp:MenuItem>
</Items>
</asp:Menu>
</td>
</tr>
</table>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
Thanks in advance,
karthik jogaian 

Answers (1)