PDA

View Full Version : Breadcrumbs done with CSS and ASP ?id


schmity119
09-07-2007, 04:11 PM
I am trying to change my links' background colors with CSS and this is what I have done to the ASP pages:

<div id="nav"><ul>

<% if request("id") = "a_about" then %><li id="a_about"><a href="/about/services.asp?id=a_about">about us</a>
<% else %><li><a href="/about?id=a_about">about us</a>
<% end if %>
</li>

<% if request("id") = "a_connect" then %><li id="a_connect"><a href="/connect/classes.asp?id=a_connect">connect</a>
<% else %><li><a href="/connect?id=a_connect">connect</a>
<% end if %>
</li>

<% if request("id") = "a_info" then %><li id="a_info"><a href="/info/info.asp?id=a_info">info</a>
<% else %><li><a href="/info?id=a_info">info</a>
<% end if %>
</li>

<% if request("id") = "a_life" then %><li id="a_life"><a href="/life/adult.asp?id=a_life">life</a>
<% else %>
<li><a href="/life?id=a_life">life</a>
<% end if %>
</li>
</ul>
</div>


Here's my CSS:

#a_about, #a_connect, #a_life, #a_info a {
background-color:#006666;
}


Anyone who can help, pleeaaasse ! messedup:

nlptrainer
12-06-2007, 08:07 PM
Try this:

#a_about a, #a_connect a, #a_life a, #a_info a {

You have to include the tag as well as the id

John, Hypnotherapist Extraordinaire, NLP Trainer,
and Full Time Grad Student in Clinical Psychology
---------------------------------------------------
John Strasser