View Full Version : [CLOSED] how to beautify asp.net menu control?

Oct 26, 2013, 4:26 PM
hi team,
i originally want to use ext:menu control, but may be it is not suitable use to web menu .so i use the default control , but i am not familiar to custom css to it.

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" Width="960px" Font-Bold="True" Font-Size="14px" ForeColor="White" BackColor="#0066FF" BorderColor="Blue" BorderStyle="Solid" BorderWidth="1px">
<DynamicHoverStyle ForeColor="#C6FF20" />
<DynamicMenuItemStyle BackColor="#0066FF" ForeColor="White" />

<DynamicSelectedStyle ForeColor="#C6FF20" />


i have several question:

i have added height property to the asp:menu, but the text in the menu is not vertical center.
how to add padding or margin to the root menu item, because the width between menus is narrow.
how to add padding to the sub menu item, the default width between border and text is narrow.

on line demo is :http://qizweb.com
can you help me ? thanks.

Oct 28, 2013, 5:09 AM

It would be best to post questions specific to ASP.NET or ASP.NET Controls on StackOverflow (http://stackoverflow.com/).

The Ext.NET forums are best suited for questions related to Ext.NET components.

Oct 28, 2013, 5:12 AM

Could you also clarify why an Ext.NET Menu component is not suitable for you?

Oct 28, 2013, 5:41 AM

Could you also clarify why an Ext.NET Menu component is not suitable for you?

i want to use ext.net menu , but i think it is difficult to custom css .

could you please give some idea how to change ext.net menu's view ?

Oct 28, 2013, 6:30 AM
What exactly what you like to change?

Here is an example of changing the text color.


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<head runat="server">
<title>Ext.NET v2 Example</title>

.my-menu .x-menu-item-text {
color: green;
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Button runat="server" Text="Menu">
<ext:Menu runat="server" Cls="my-menu">
<ext:MenuItem runat="server" Text="Item 1" />
<ext:MenuItem runat="server" Text="Item 2" />

Oct 28, 2013, 7:38 AM
i want to beautify the above menu, can you help me to do a demo with ext.net menu?

Oct 28, 2013, 12:19 PM
We don't have such an example, but this should help you to start.