simple CSS quesiton

Status
Not open for further replies.
Ow, great, I just spent the whole morning trying to figure this one out. All of my links should stay normal except for five of them which should remain white and bold at all times. I ended up doing it like this:

the CSS:

code:<HR>
Code:
<style><P>.link { 
   color: white; 
   font-weight: bold; 
   text-decoration: none 
}<P></style>

and in the document:

code:<HR>
Code:
<a href="info.html"><span class="link">General info</span></a>

Maybe not the prettiest version, but I can guarantee it works, I'm looking at it right now. :)
 
If you want to look at the way I did my css script, go here to see it in action.

Edit: Plasdom, I'll try that. BTW, I came up with the css script myself, but the < span > tags idea actually comes from the Ars front page. There different color links are used as well, and they are put in those tags.

Edit2: Plasdom, you're right, it works fine. I initially tried that I think, but I put in
code:<HR>
Code:
<a class="link" href="info.html">General info</a>
which didn't work. Silly I didn't try it the other way around of course...

[This message was edited by 8-Track on October 15, 2001 at 15:05.]
 
Status
Not open for further replies.