different link colors

D

dorayme

SAZ said:
My second post contains a method that certainly DOES work

Not that I can see. You might have missed the significance of my "er..."
in my earlier post. If I have you wrong, I apologise but piecing
together your html (mentioned in your first post) with your "corrected"
CSS and trivially changing your "blue" to "red" in the HTML bit so you
can test more effectively:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Some tunes</title>
<style type="text/css" media="screen">
..red a:link { color: red; }
</style>
</head>
<body>
<ul>
<li><a class="red" href="redpage.html">This is a red link</a></li>
</ul>
</body>
</html>

Does not get you a red link.

I posted one way to correctly skin this cat. (I noticed JL chipped in to
raise the class name practice issue that is not strictly relevant here,
Not that I want to disagree with his suggestions so much)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top