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:
<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: