Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets 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 November 3rd, 2004, 06:25 AM
cat cat is offline
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default nav - how to show what page you are on

ok, i've got this in my css:

body#contact a#contnav,
body#about a#aboutnav,
body#what a#whatnav,
body#how a#hownav,
body#port a#portnav,
body#com a#comnav,
body#quot a#quotnav {
    background-color: #E5E4E8;
    color: #5E579C;
}

but it's not working. i'm using it in another site and it's working fine.

i want to be able to show what page the person is on by the colour of the nav.

here's the page -->> http://www.katzidesign.com/about_us/index.htm

and the css -->> http://www.katzidesign.com/katz/wide.css

[[it's the little outstanding bits that bite you in the butt as they come back to haunt you in the end, yes?]]

cat
 
Old November 4th, 2004, 09:22 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

A quick look at your pages reveals that you haven't defined the id attribute for the <body> tag in any of those pages.

Also one of the pages has the <body> tag defined twice.

<body onLoad="MM_preloadImages('../t_images/icon_over.gif','../t_images/katz_ban_l_o.gif','home_images/college_eng_over.jpg','home_images/dinner_con_over.jpg')">
<body id="home">

HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old November 4th, 2004, 09:00 PM
cat cat is offline
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dang rich, if i could lean over and give you a HUGE mmmwwaahhhh, i would.

thanks. once again.

[i keep looking at it and missed the obvious]

and now for my next trick ...

cat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Show a pdf file on the page gabrieldcr2 ASP.NET 1.0 and 1.1 Professional 2 October 5th, 2006 05:17 PM
nav: how do i show what page the viewer is on? cat CSS Cascading Style Sheets 8 July 6th, 2005 03:20 PM
WHy does it show 1 record per page instead of 10? gilgalbiblewheel Classic ASP Databases 2 April 27th, 2005 11:03 AM
PHP MySQL - Show every x per page Mantis Pro PHP 1 March 17th, 2005 11:06 AM
Page titles do not show as they should Ruben@Adafi Dreamweaver (all versions) 2 October 26th, 2004 02:23 AM





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