Hi,
If you want to set the text of the menuitem's align is left, you try to do in the DynamicItemTemplate or StaticItemTemplate, like below:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" onmousehover="abc">
<DynamicItemTemplate>
<table>
<tr>
<td align=left>
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("NavigateUrl") %>'><%# Eval("Text") %></asp:HyperLink>
</td></tr></table>
</DynamicItemTemplate>
<StaticItemTemplate>
<table>
<tr>
<td align=left>
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("NavigateUrl") %>'><%# Eval("Text") %></asp:HyperLink>
</td></tr></table>
</StaticItemTemplate>
</asp:Menu>
You also can try to wrap the menitem's text with a div control, then set the div's align, like below:
protected void Menu2_MenuItemDataBound(object sender, MenuEventArgs e)
{
e.Item.Text = " <div style='width: 243px' align='left'> " + e.Item.Text + "</div>";
}
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support