Re: ASP and CSS

by "Kehvan M. Zydhek" <kehvan(at)zydhek.net>

 Date:  Tue, 11 Apr 2000 12:46:18 -0700
 To:  "Adam McKee" <amckee(at)respectofflorida.org>,
"Html Writers Guild - Style \(E-mail\)" <hwg-style(at)hwg.org>
 References:  NTSERVER1
  todo: View Thread, Original
Adam,

I believe it doesn't work because you override the style sheet with the
<FONT> attribute in the tag. Here's your tag broken apart:

<a href='catalog.asp?
expand=<%=Replace(RS.Fields("Category"),"","+")%>
&feat=<%=Replace(RS.Fields("Category")," ","+")%>'>
<fontface="Tahoma,Verdana,Arial" color="#387DC0" size="1">
<%=RS.Fields("Category")%>
</a>

For whatever reason you have a font code in there (rather than using
styles), the color code is preventing the A:hover from working properly.

I've never had much luck mixing CSS and HTML-3 coding together in a
document, so I do it either HTML4/CSS or HTML3.2, but not both. Since you're
using ASP, you can simply code a substitution script that will place
HTML4/CSS font codes if Condition A exists, or place HTML3.2 font codes if
Condition B exists (such as a non-HTML4 compliant browser).

Good Luck!
Kehvan M. Zydhek

----- Original Message -----
From: "Adam McKee" <amckee(at)respectofflorida.org>
To: "Html Writers Guild - Style (E-mail)" <hwg-style(at)hwg.org>
Sent: Tuesday, April 11, 2000 06:11
Subject: ASP and CSS


> I have the following in one of my documents:
>
> <STYLE TYPE="text/css">
> <!--
> A:link {color:"#003399";}
> A:visited {color:"#003399";}
> A:hover {color:"red";}
> -->
> </STYLE>
>
> And I'm using ASP in my document as well... some of the links work with
> the hover color of red.. and some don't. Here is a link that does work:
>
> <a href="mailto:webmaster(at)whatever.org">Contact Us</a>
>
> And here is the link that doesn't work for some reason....
>
> <a href='catalog.asp?expand=<%=Replace(RS.Fields("Category"),"
> ","+")%>&feat=<%=Replace(RS.Fields("Category")," ","+")%>'><font
> face="Tahoma,Verdana,Arial" color="#387DC0" size="1"><%=
> RS.Fields("Category")%></a>
>
> Anyone have an Idea why this may not be working properly? If it means
> anything.. the above link is in a "do while not" loop with ASP...
>
> Thanks much in advance!
>
>

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA