Forum Moderators: not2easy

Message Too Old, No Replies

navigation bars, include

navbar, current, select, include

         

sketchy

5:02 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



Hi - I have two navigation bars - one horizontal, one vertical. Both are driven by includes.
I want the current page to be formatted differently when displayed, and I want the formatting to change on each page. Is there a way to do this with a single style sheet/include combo.

IE: *page 1* ¦ page 2 ¦ page 3
page 1 ¦ *page 2* ¦ page 3
page 1 ¦ page 2 ¦ *page 3*

Dave

photon

5:46 pm on Apr 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One thought that comes to mind is to give each page a unique ID for body, e.g.:
<body id="page1">
. Then give each link a unique ID as well, say
id="link1"
.

Then in your CSS you'd have something like:


#page1 #link1, #page2 #link2, #page3 #link3
{font-weight:bold; color:red;}

That way the the styling only applies to the given page's link.

photon

2:56 pm on Apr 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh, and welcome to WebmasterWorld!

sketchy

3:27 pm on Apr 13, 2004 (gmt 0)

10+ Year Member



Thanks -- this worked.

but the include is a little funky.

Can client side includes cross directories? if the include is in the same directory the pages display properly, but if I relativly point a directory down it returns a processing error.