Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 16th, 2011, 04:10 PM
Registered User
Points: 25, Level: 1
Points: 25, Level: 1 Points: 25, Level: 1 Points: 25, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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:

http://www.ZeeMfg.com

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?
Reply With Quote
  #2 (permalink)  
Old February 16th, 2011, 04:16 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

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

a
{
color: #cc0505;
}

in css_page.css

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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.