I have trying to create spacing between items in my menu control and I have been totally unable to create any item spacing. I have tried every property with the word spacing and still I am unable to space my menu items. Any ideas?
Ok, let me try something different. These menu buttons look like they are dead center in the middle and the text is getting cut off. I need to align the text and associated image in the menu control left so that this does not happen. What property on the
menu control can do this for me?
mrrogers
Member
202 Points
728 Posts
How to create spacing between menu items
Mar 02, 2010 04:58 PM|LINK
I have trying to create spacing between items in my menu control and I have been totally unable to create any item spacing. I have tried every property with the word spacing and still I am unable to space my menu items. Any ideas?
PrashantBhar...
Member
169 Points
30 Posts
Re: How to create spacing between menu items
Mar 02, 2010 05:48 PM|LINK
what is your code..?
You can also apply spacing with the help of CSS styles.. apply a CSS class with right margin with the pixels of your desired spacing.
Website:idevndesign.com
Follow me: on Twitter
||Mark as Answer-if this content helped you.||
BryianTan
Contributor
5626 Points
1083 Posts
Re: How to create spacing between menu items
Mar 02, 2010 06:56 PM|LINK
hello,
Have you try the ItemSpacing?
<staticmenuitemstyle BorderWidth="1px" ItemSpacing="8" BorderColor="white" forecolor="Black"/>
MCP, MCAD, MCTS
My blog...
kaiclassic
Member
541 Points
196 Posts
Re: How to create spacing between menu items
Mar 03, 2010 03:08 AM|LINK
I put controls within a table for easy layout control. If I want to put space between controls, I just use " ". You may try to use   as well.
mrrogers
Member
202 Points
728 Posts
Re: How to create spacing between menu items
Mar 03, 2010 11:53 AM|LINK
I'm using a sitemap filed and a menu control so that is not workable.
mrrogers
Member
202 Points
728 Posts
Re: How to create spacing between menu items
Mar 03, 2010 12:19 PM|LINK
Ok, let me try something different. These menu buttons look like they are dead center in the middle and the text is getting cut off. I need to align the text and associated image in the menu control left so that this does not happen. What property on the menu control can do this for me?
Hong-Gang Ch...
All-Star
74696 Points
6768 Posts
Re: How to create spacing between menu items
Mar 08, 2010 09:01 AM|LINK
Please check this article,
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menu_members.aspx
the article above show all property for you.
Additionally, we can check the rendered code through the 'View Source' and setting the style for the elements.
If you have any feedback about my replies,please contactmsdnmg@microsoft.com.
Microsoft One Code Framework