Menu Template Problem


Kenneth Chan

I have created a menu with the following code:

<asp:Menu ID="Menu1"
runat="server" BackColor="#F7F6F3"
Font-Size="X-Small" Orientation="Horizontal"
DynamicPopOutImageUrl="~/Images/Menu/Arrow.gif" StaticSubMenuIndent=""
Height="25px" DisappearAfter="600">
HorizontalPadding="0px" VerticalPadding="0px" ItemSpacing="0px"
Font-Bold="True" />
HorizontalPadding="0px" VerticalPadding="0px" ItemSpacing="0px"
Font-Bold="False" />
Text="Help" Value="Help">
Text="Contents" Value="Contents"></asp:MenuItem>
Text="Frequently Asked Questions" Value="Frequently Asked
Text="Online Support" Value="Online Support"></asp:MenuItem>
ID="LinkButton1" runat="server" Width="100%"
PostBackUrl='<%#Eval("NavigateURL")%>' style="padding-right: 10px;
padding-left: 20px; padding-bottom: 5px; padding-top: 5px;
border-top: 1px solid; border-right: 1px solid; border-left: 1px solid;
border-bottom: 1px solid;
text-align: left; margin: 0px;" ><%# Eval("Text") %></asp:LinkButton>
<asp:Table ID="Table1"
runat="server" BackImageUrl="~/Images/Menu/StaticTab01.gif"
Width="100%" Height="25px" >
runat="server" Height="4px">
runat="server" BorderWidth="0px" HorizontalAlign="Left">
runat="server" Width="12px"></asp:TableCell>
runat="server" HorizontalAlign="Center"><%# Eval("Text") %></asp:TableCell>
runat="server" Width="12px"></asp:TableCell>
BackColor="#FCFCFC" BorderColor="Silver" BorderStyle="Solid"
BorderWidth="1px" />
BackColor="#E6E6E6" />
Font-Bold="True" CssClass="MainMenuStatic2" />
BackColor="Transparent" CssClass="MainMenuStatic1" />

My problem is that there is a gap of about 3px between each dynamic menu
items. The worst is that when mouse pointer point to these gap, the menu
disappear. You can see I only placed a LinkButton in the
DynamicItemTemplate, why there are gaps?
Thanks a lot.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question