CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/17/2006 6:26:10 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 111 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
poidda
Asp.Net User
Formating seperator in asp:menu10/17/2006 6:26:10 AM

0

Hi,  I am using the asp:menu control, and want a border on the bottom of the seperator between each menu item.  How can I do this?

 
Cheers 

<asp:Menu DataSourceID="SiteMapDataSource1" ID="Menu1" Orientation="Horizontal"
        StaticEnableDefaultPopOutImage="false"    StaticDisplayLevels="1"  runat="server">
    <StaticMenuItemStyle CssClass="StaticMenuItem" VerticalPadding="3" HorizontalPadding="5"/>
    <StaticSelectedStyle CssClass="StaticSelected" VerticalPadding="3" HorizontalPadding="5"/>
    <StaticHoverStyle CssClass="StaticHover"/>
    <DynamicMenuStyle BackColor="#FFFBD6"/>
    <DynamicSelectedStyle BackColor="#FFFFFF"/>
    <DynamicMenuItemStyle />
    <DynamicHoverStyle BackColor="#990000" Font-Bold="False" ForeColor="White" />
</asp:Menu>

Fredrik N
Asp.Net User
Re: Formating seperator in asp:menu10/17/2006 6:44:41 AM

0

Try the following and see it that is what you are looking for:

<DynamicMenuItemStyle CssClass="DynamicMenuItem" />

    <style type="text/css">
   
        .DynamicMenuItem
        {
            border-bottom: 1px solid black;
        }
    </style>


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
poidda
Asp.Net User
Re: Formating seperator in asp:menu10/17/2006 6:54:32 AM

0

Cheers, but this is not what I want.  What I am doing is making the menu's look like tabs.  ie, when they are not selected, they will have a line under them.  when they are selected, they wont.  This all works great, but there is a gap between the MenuItems (horizontal).  What I want is to fill this gap with border-bottom..............

 Thanks

Fredrik N
Asp.Net User
Re: Formating seperator in asp:menu10/17/2006 7:51:23 AM

0

To remove the gab between the items, use the ItemSpacing attribute for the Style properties:

<StaticSelectedStyle ItemSpacing="0" .../>

I hope that is what you are looking for and will solve your problem.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
poidda
Asp.Net User
Re: Formating seperator in asp:menu10/17/2006 11:10:05 PM

0

Thanks once again Frederik, but I was a Space between my menuitems at the top so it looks good.

I would think that there's be a way to actually set the style of the gap?!?!?  My menu works great with my web.sitemap etc, but I just cant format this "gap".

These are teh most frsutrating and time consuming things.  grrrrr.

 

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Crystal Reports Professional Results: Professional Reports Authors: George Peck, ebrary, Inc, Pages: 408, Published: 2003
Professional DotNetNuke 4: Open Source Web Application Framework for ASP.NET 2.0 Authors: Shaun Walker, Joe Brinkman, Bruce Hopkins, Scott McCulloch, Patrick J. Santry, Chris Paterra, Scott Willhite, Dan Caron, Pages: 517, Published: 2006
Access 2003 Programming by Example with VBA, XML, and ASP Authors: Julitta Korol, Pages: 600, Published: 2005
Beginning Expression Web Authors: Zak Ruvalcaba, Pages: 474, Published: 2007
RadControls for ASP.NET: A Step By Step Learning Guide Authors: unknown, Pages: 0, Published: -1
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
The Training Professionals Web Design Toolkit: Microsoft Office Frontpage 2003 Authors: Seung-Youn Chyung, Pages: 216, Published: 2004

Web:
Formating seperator in asp:menu - ASP.NET Forums Formating seperator in asp:menu. Last post 10-17-2006 7:10 PM by poidda. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
remove seperator image and formatting selected items on asp:menu ... remove seperator image and formatting selected items on asp:menu. Last post 04- 16-2008 4:38 PM by grumbs. 2 replies. Sort Posts: ...
MenuItem.ImageUrl Property (System.Web.UI.WebControls) by nesting them within parent menu --> The problem is, ASP sticks a 'seperator' after every single menu item. This means I have a separator on the end that has no purpose and ...
ASP.NET Menu Control APNSoft Menu uses XML for defining Menu Structure since XML is the most convenient format for structured data. The XML Menu Structure consists of a number ...
MenuItem.SeparatorImageUrl Property (System.Web.UI.WebControls) This image can be in any file format (.jpg, .gif, .bmp, and so on), as long as the ... by nesting them within parent menu --> CodeProject: Very Compatible DHTML Menu ASP.NET User Control. Free ... An ASP.NET user control for a DHTML drop down menu, with high compatibility ... when you hover over the menu item it displays the items in the grid format . ...
ASP.NET Menu Server Control - UltimateMenu UltimateMenu Server Control. UltimateMenu is a web control for ASP.NET. ..... If the item is an "Image" or "Separator" this field will only be displayed in ...
Menu Control - ASP.NET 2.0 create your menu control in your aspx page: Site Navigation in ASP.Net 2.0 Menu, TreeView, Crumbs Menu; Treeview; breadcrumbs. ASP.Net uses a sitemap to document the site’s structure ... Change the path separator property to a pipe symbol ...






convert dnn v 2.x module to dnn v3.x?

is dnn2b2 windows 2000 compatible? or only 2003?

some questions about controls loaded from ?ctl= param...

error installing module in dnn 3.0.13

dnn 3.1 isn't handling deleted users very well...crashed admin tools

text/html module rewriting code and paths

extremely strange behavoir dnn 2.1.2 when migrating to production

dnn 2.1.2, 3.0.8, please advise!

4.0 source errors.

module installer won't accept sql string joining

dotnetnuke configuration error not getting fixed. please help!

status on delivery of version 1.1 and advice on snapsisdnn

add page to admin tab

error in instalation dnn3

windows authentication

bug reporting

single sqldataprovider for related custom modules?

flash in dnn

bug: sitelog history de-de.resx needs to be fixed...

switching nameservers when using a dnn site

dropdownlist doesn't accept default value in custom module

role expiration

changing issuperuser flag.

development question about sql data provider (help please)

solpart problem 3.0.8

opening dnn project(s)

solpart menu formatting xml vs css

dnn install error

2.0.3: skinning with multiple aliases

enterprise events update

   
  Privacy | Contact Us
All Times Are GMT