Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 May 16th, 2008, 10:42 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Menu control showing what page you are on?

Hi, It would be nice to have the menu control show that it has been selected so you would know what section you are on (I know the breadcrumb does this, but it would be easier to quickly tell where you are at if the menu item was a different color than the unselected menu items). Is there a way though of doing this so that even when you are viewing child pages the menu still reflects the parent page grouping selected? So if you select the Admin item and are managing users or manage orders, the Admin menu item still remains selected/emphasized?

Thanks for the help, Kim


 
Old May 27th, 2008, 07:08 AM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Kim,

I achieve this with CSS:

Code:
#header-menu a
{
    font-size: 14px;
    color: #8a8a8a;
    text-decoration: none;
}

#header-menu a:hover
{
    color: #000000;
    text-decoration: none;
}

/* ACTIVE PAGES */
#header-menu a.StaticSelectedStyle:link, #header-menu a.StaticSelectedStyle:visited
{
    color: #000000;
}
This makes my menu items grey, black when someone hovers and makes the active link also black.

You can obviously change this to your formatting requirements.

As for your second requirement I am not too sure, think you may have to do this programmatically. As you are viewing another page so the above CSS will not have any effect.

Hope that helps.









Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure CSS Menu Showing Behind Form Fields in IE kwilliams CSS Cascading Style Sheets 10 November 19th, 2007 10:25 AM
CSS Menu - Top list item not showing up in IE kwilliams CSS Cascading Style Sheets 1 October 26th, 2007 09:10 AM
VBA Macros not showing up in the run macro menu d.lee84 Access VBA 9 August 21st, 2007 09:37 AM
Showing Hyperlink in Winforms Datagrid control livehed C# 0 January 20th, 2006 01:56 PM
Showing menu over flash image arnabghosh Classic ASP Basics 1 June 14th, 2005 08:36 AM





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