Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

SSI and a Menu Downstate?

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

Junior Member

10+ Year Member

joined:Aug 7, 2007
posts: 188
votes: 0

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.

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

Junior Member

10+ Year Member

joined:Aug 7, 2007
posts: 188
votes: 0

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>

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?

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

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members