Forum Moderators: phranque

Message Too Old, No Replies

SSI and a Menu Downstate?

         

terrybarnes

10:28 pm on Dec 8, 2008 (gmt 0)

10+ Year Member



I've seen a few posts covering this before but I'm still not exactly sure how to go about this issue.

I would like to include my CSS menu as an SSI but still have downstates for when the user is in those specific sections of the site.

Is there a way that I could add an ID to each page and then call on that ID in the external stylesheet? If so, I'm still a little unsure as to how to do it.

Any help would be very much appreciated.

terrybarnes

10:58 pm on Dec 8, 2008 (gmt 0)

10+ Year Member



Actually just so you can see what I'm doing, here's the code for the menu I'd like to call in to each page (this is only a 3 button nav example):

<div id="menu">
<a id="button1" href="index.html"><span class="alt">Home</span></a>
<a id="button2" href="about.html"><span class="alt">About</span></a>
<a id="button3" href="contact.html"><span class="alt">Contact</span></a>
</div>

But where I need to include the state as down I have to use this, as I've made the nav using one image which includes both up and down states:

<a id="button1" style="background-position: 0px 32px" href="index.html"><span class="alt">Home</span></a>

So how can I include this as an SSI when I have to have a different element for each menu item?

rocknbil

3:40 pm on Dec 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use the if/then constructs available to SSI for this. Previously discussed [webmasterworld.com].