CSS problems

They have: 6 posts

Joined: Mar 2001

Hi, I'm having this problem with this external CSS I made for my site, since I'm pretty new to this whole HTML thing, I read up on it as much as I could, but this problem I can't seem to find a solution for

My site is at http://strife.100megsfree3.com/
and the text file for my stylesheet is at http://strife.100megsfree3.com/stylesheet.txt (my page uses the .css version)

Now, the thing is, I think I have declared the anchor tags in the stylesheet correctly, and in correct order, but the problem is that the A:link declaration seems rather unaffected by the style sheet, I have used IE 5.5 and Netscape 6.0 to see the site, and they both display the same result, the underlined ugly blue link Sad

Also, how could I implement other link declaration that I don't want to move like the ones on the menu, I have read a bunch of CSS tips and pages but they don't seem to cover links and CSS much

Thank you for any help

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

use classes to get different effects for different links...

<style>
a { color: ff0000; }
a.blah { color: 0000ff; }
</style>
(........)
<a href="blah.htm" class=blah>blah</a>
<a href="sumthin.htm">everything else</a>
'
the link "blah" will be blue, 'everything else' will be red. and you can add link,active,visited, and hover after the a.class_name (a.blah:hover)

was that the question? Wink

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 6 posts

Joined: Mar 2001

that answered the second part, but do you know what i can change in the style sheet to make the a:link behave the way i want it to? (ie be a white color and arial font instead of the blue underline link it is now) I'm not sure what the problem is, I think the css is correct and in all theory it should work but somehow it doesn't

They have: 6 posts

Joined: Mar 2001

oh I got it to work, it seems the css was very picky about the order of the declarations, again, thank you for your help

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.