Solved

menu control spacing

Posted on 2007-11-21
5
650 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
Comment Utility
  8)
0
 

Author Comment

by:Fraser_Admin
Comment Utility
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
Comment Utility
what does the asp/html code look like?  Can you post a snippet of this control?
0
 

Author Comment

by:Fraser_Admin
Comment Utility
<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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

771 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

10 Experts available now in Live!

Get 1:1 Help Now