Solved

menu control spacing

Posted on 2007-11-21
5
653 Views
Last Modified: 2013-11-07
how do i add space between items in a menu control.  it is set for horizontal, but there is no space between each item, hard to tell where one item ends and one begins.
0
Comment
Question by:Fraser_Admin
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:John Gates
ID: 20328618
  8)
0
 

Author Comment

by:Fraser_Admin
ID: 20328664
where do i put that, i'm using a site map and a menu control in asp.net 2.0?
0
 
LVL 17

Expert Comment

by:John Gates
ID: 20328713
what does the asp/html code look like?  Can you post a snippet of this control?
0
 

Author Comment

by:Fraser_Admin
ID: 20329014
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Style="z-index: 100;
            left: 0px; position: absolute; top: 0px" Orientation="Horizontal" BackColor="#E0E0E0" BorderStyle="Solid" DynamicHorizontalOffset="2" ForeColor="Black" StaticEnableDefaultPopOutImage="False" BorderColor="Black">
            <StaticMenuStyle BorderStyle="Solid" BorderWidth="1px" />
            <DynamicMenuItemStyle BackColor="#E0E0E0" BorderColor="Black" />
        </asp:Menu>
0
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
ID: 20330206
have you tried just playing with the padding attributes?
        <asp:Menu ID="Menu1" runat="server" BackColor="#E0E0E0" BorderColor="Black" BorderStyle="Solid"

            DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="2" ForeColor="Black"

            Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" Style="z-index: 100;

            left: 0px; position: absolute; top: 0px">

            <StaticMenuStyle BorderStyle="Solid" BorderWidth="1px" HorizontalPadding="40px" VerticalPadding="5px" />

            <DynamicMenuItemStyle BackColor="#E0E0E0" BorderColor="Black" HorizontalPadding="40px" VerticalPadding="5px" />

        </asp:Menu>    

Open in new window

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now