473,395 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP Menu Control - Weird Spacing Issue

G'day,

I'm trying to implement a graphical horizontal Menu-bar feeding off a
SiteMapDataSource with some top-level menu-items and a couple of
sub-menus.

I've managed to get the menu bar working, but noticed that the
top-level items were spaced generously.

Once the menu renders on the screen I find all these "margin-left=16px"
commands sitting within the anchor class, ie:

<a class="ctl00_Menu1_1 ctl00_Menu1_3" href="/page1.aspx"
style="margin-left:16px;">

Any ideas would be most appreciated. Below is the code I have used to
generate the menu.

Also, before anybody jumps back with a reply, modifying the
"DynamicHorizontalOffset" property didnt work.

Thanks!

Chris

----------------------------------------------------------------------------------

<asp:Menu ID="TopMenu" runat="server" DataSourceID="TopMenuDS"
DynamicMenuStyle-HorizontalPadding="0"
DynamicMenuItemStyle-HorizontalPadding="0"
StaticMenuStyle-HorizontalPadding="0"
StaticMenuItemStyle-HorizontalPadding="0" Orientation="Horizontal"
staticdisplaylevels="2" Width="933px">

<DataBindings>
<asp:MenuItemBinding DataMember="SiteMapNode"
ImageUrlField="Description" NavigateUrlField="Url"
PopOutImageUrl="images/MasterPages/Menu/PopOut.jpg" />
</DataBindings>

<StaticMenuStyle HorizontalPadding="0px" />
<StaticMenuItemStyle HorizontalPadding="0px" />
<DynamicMenuStyle HorizontalPadding="0px" />
<DynamicMenuItemStyle HorizontalPadding="0px" />

</asp:Menu>

----------------------------------------------------------------------------------

Jun 26 '06 #1
0 1339

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Moe | last post by:
Hello, I am (slowly) in the process of changing a table-based layout to CSS/div-based. One area that uses tables a lot is the main nav menu. I have discovered that tables have advantage: all...
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
20
by: MARLON LA ROSE | last post by:
CAN ANYONE TELL ME HOW I GET THE ACTUAL OBJECT OF A MENU ITEM. IS THERE A FILTER OR SOMETHING THAT I CAN USE. I HAVE BEEN FIGHTING WITH THIS FOR ABOUT 4 HOURS NOW AND I END UP GETTING THE SAME...
4
by: metoikos | last post by:
I've scoured the web (clumsily, I'm sure) for information on the difficulties I am having, checked my markup in validators, and had a friend with more CSS clue look over it, but I haven't had any...
3
by: =?ISO-8859-1?Q?Jo=E3o_Maia?= | last post by:
Hi there, I am having a weird problem in trying to use a ASP.NET menu inside a custom web part. I am developing a custom web part that has a menu inside (just the menu, nothing else). The menu...
1
by: CKich30 | last post by:
When viewing my page (siuehockey.net) in Firefox, it's setup how I want it to look. When i viewed it using IE, the menu at the top runs into the "Cougar Hockey/cougarhockey.net" at the top left....
5
by: Joey | last post by:
VS2008 C# Hey guys, something crazy is going on when I try to view my website with either Google Chrome or Apple Safari. For some reason the web server is sending extra markup to the site's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.