CSS virker ikke i Response.Write
Mit CSS fungere ikke som det skal. Det gør skriften større end den skal være og den giver ikke links de korrekte farver.Her bruges <span>:
Response.Write "<span class=quickNote><TABLE BORDER=1 BORDERCOLOR=black cellspacing=0 cellspacing=5 WIDTH=600><TR><TD BGCOLOR='darkred' WIDTH=300><FONT COLOR='white'> " & rs("eNavn") & ", " & rs("fNavn") & "</FONT></TD><TD BGCOLOR='#777777' WIDTH=300>Home: " & rs("hjem") & "</TD></TR><TR><TD BGCOLOR='#999999' WIDTH=300> " & rs("adresse") & "</TD><TD BGCOLOR='#999999' WIDTH=300>Cell: " & rs("mobil") & "</TD></TR><TR><TD BGCOLOR='#777777' WIDTH=300> " & rs("postnummer") & " " & rs("city") & " " & rs("stat") & "</TD><TD BGCOLOR='#777777' WIDTH=300>Work: " & rs("arbejde") & "</TD></TR><TR><TD BGCOLOR='#999999' WIDTH=300> " & rs("email") & "</TD><TD BGCOLOR='#999999' WIDTH=300> <A HREF='info.asp?id=" & rs("ID") & "'>[ Xtra info ]</A></TD></TR></TABLE></span><BR><BR>"
Her er CSS.css
a:active {font: Courier New; text-decoration: none; color: "#6600FF"}
a:visited {font: Courier New; text-decoration: none; color: "#CC0066"}
a:link {font: Courier New; text-decoration: none; color: "#6600FF"}
a:hover {font: Courier New; text-decoration: underline; color: "#6600FF"}
span.quickNote {
font-family: "arial";
font-size: 10pt;
font-weight: normal;
color: "black";
line-height: 1em;
font-variant: small-caps;
}
det skal siges at dette CSS virker på andre undersider på mit site.
