CSS blues!

Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

gbrandwood

Thread Starter
Joined
Jan 4, 2000
Messages
137
Greetings

I'm a novice with CSS but can get so far.

I have developed a CSS that contains link, visited, hover and active tags.

They work great. However, I want to apply different link, visited, hover and active tags to specific text on the same page, still using CSS. I want both sets to work in parallel.

Any hints for how to do this - or even if I'm wasting my time or something - please let me know.

BTW, I've got the CSS in an external file.

Thanks for any help you can give.

Regards

Gareth
 
Joined
Aug 12, 2001
Messages
213
Hi.

You can do it with CLASSES.

Your extenal css would contain something like this:

A:hover {font-weight:bold; color: #336699; text-decoration:none}
A:link {font-weight:bold; color: #990000; text-decoration:none}
A:visited {font-weight:bold; color: #990000; text-decoration:none}
A:visited:hover {font-weight:bold; color: #336699; text-decoration:none}
A.nav:link {color:#336699; font-weight:bold; text-decoration:none}
A.nav:visited {color:#336699; font-weight:bold; text-decoration:none}
A.nav:hover {color:#990000; font-weight:bold; text-decoration:none}
A.nav:visited:hover {color:#990000; font-weight:bold; text-decoration:none}

"normal" links would be the default...but you could call your secondary class in a link like this:

Code:
<a href="http://classylinks.ca" class="nav">ClassyLinks</a>
 

gbrandwood

Thread Starter
Joined
Jan 4, 2000
Messages
137
ClassyLinks to the rescue!

Thank you very much for helping me out.

That does exactly what I want it to do.

Regards

Gareth
 
Joined
Aug 12, 2001
Messages
213
Glad to help!

CobolDinosaur is the real genius with CSS though....everything I know I learned from him.
 
Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top