Wrox Programmer Forums
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 16th, 2011, 04:10 PM
Registered User
Join Date: Feb 2011
Posts: 5
Thanks: 3
Thanked 0 Times in 0 Posts
Default Non-URL'd Menu Header Turns Red

I have a horizontal menu with a static top level. One of the top level menu items is a "header" and does not have a URL assigned to it (url=""). When the user hovers over this header the lower level menu items are displayed.

All this works well except that when the user selects one of the pages from the lower level menu items the header text turns red.

To see this in action go to:


and notice the "Products" menu item. Hover over it and then select "Photo Gallery" or "Door Styles". When the requested page comes up notice that the text for the "Products" menu header has turned red.

I'd like to prevent it from changing color or be able to choose the color to change it to - any ideas?
Old February 16th, 2011, 04:16 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

The "header" is still an a element and gets its color from

color: #cc0505;

in css_page.css

To overrule the color for the menu, you can add a rule such as:

color: whatever you want;

For questions not related directly to my book (such as this one) would you mind posting in a more general ASP.NET or HTML / CSS fourm: http://p2p.wrox.com/asp-net-4-539/ ?

Hope this helps,

Imar Spaanjaars
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!
The Following User Says Thank You to Imar For This Useful Post:
d2drake@gmail.com (February 16th, 2011)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Huge space between Header and Menu Rushino BOOK: Beginning ASP.NET 4 : in C# and VB 2 April 9th, 2010 04:11 PM
Using ASP classic filesystem object to retrieve a xml file turns characters into Chin grotgod Classic ASP Basics 5 March 8th, 2009 03:07 PM
[red]Setting prob[/red] shivanshub ASP.NET 2.0 Professional 1 September 12th, 2006 10:01 AM
Dreaded red X sibbs Dreamweaver (all versions) 3 February 17th, 2006 07:56 PM

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