Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

menu control spacing

Posted on 2007-11-21
5
Medium Priority
?
663 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 18

Expert Comment

by:John Gates, CISSP
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 18

Expert Comment

by:John Gates, CISSP
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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

916 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