Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2010, 03:55 AM
Authorized User
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default giving style to Menu

Hi Imar,

I want to give Style to Menu in my web page, each menu should be seprated with white line and there should be a color under the Menu till the end of the page. Please kindly guide me in this regard.
 
Old February 22nd, 2010, 06:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can simply add something like

border-bottom: 1px solid white;

to the relevant CSS selector. I don't understand the second part of your question.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old February 23rd, 2010, 03:35 AM
Authorized User
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for your reply, Actually i used this Code in Css:
.Menu
{
top: 180px;
left: 15px;
width: 195px;
position:absolute;
background-image: url("C:\Documents and Settings\All Users\Documents\My Pictures\Button.gif");
border-bottom-color:Red;
border-bottom-style:solid;
border-bottom-width: thick;
border-bottom-style: solid;
}

and the Code at Master Page is:
<asp:Menu ID="myMenu" runat ="server" DataSourceID ="MySiteMap" BackColor ="ControlLight" StaticHoverStyle-Height ="20" Font-Bold ="true" BorderColor ="#669999" StaticMenuStyle-CssClass ="GridRow" StaticHoverStyle-BackColor ="Gray" ForeColor ="White">

But still no white line between each Menu.
Another question is that the Menus are on Left side of Page, can i have an image or color which will fill the whole Lift side of the Page?
Thanks.

Last edited by majeedkhan; February 23rd, 2010 at 03:37 AM..
 
Old February 23rd, 2010, 11:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're applying the class to the entire menu, not to a single menu item. Instead, use the DynamicMenuItemStyle to set the border for individual items.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to redirect XML outputted by style sheet back into same style sheet Kenneth.Dougherty XSLT 4 November 9th, 2009 04:29 PM
Keeping a menu style when Dynamic menus hovered or selected SouthendSupporter ASP.NET 3.5 Basics 3 November 9th, 2009 12:57 PM
Chapter 7 Menu tool of navigation css style problem lixintong ASP.NET 3.5 Basics 1 July 10th, 2009 05:02 AM
Giving a program a 'name' Badman3k VB.NET 2002/2003 Basics 2 September 12th, 2004 09:57 PM
difference between style.visibility and style.disp Mimi Javascript How-To 6 September 17th, 2003 11:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.