Forum Moderators: not2easy

Message Too Old, No Replies

can't figure it out. is it possible?

         

AlwaysLearning

3:48 am on Aug 21, 2003 (gmt 0)

10+ Year Member



i'm creating some simple images that are going to be hyperlinked and i would like them to have specific colors for the link, visited, hover and active elements of my <a>. i created an external style sheet and simply wrote:

a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}
a.one:active {color: rgb(90,00,33)}

i then wen to the page where i wanted to attach classes to the images and typed in the following:

<a class=".one" href="..

i'm using a theme in FP2000 and i'm not sure if things are getting crossed up or maybe i'm not cascading things right, but i feel like i got the code right. Right? i can't tell, been staring at it too long. oh, just in case anyone is wondering, i;m not trying to change the images, but just the border that surronds and higlights the link when click, move your mouse, and are visiting the specific page. please help!?

RammsteinNicCage

5:12 am on Aug 21, 2003 (gmt 0)

10+ Year Member



I think you have to take the . out of the class in the html.

<a class="one" href="...">

Jennifer

AlwaysLearning

6:42 am on Aug 21, 2003 (gmt 0)

10+ Year Member



i have tried doing that (because someone asked a similiar question on another post when it came to creating classes), but i'm still getting a whole lot of nothing. any other suggestions?

BlobFisk

8:59 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know nothing about FP2000 or themes, but RammsteinNicCage is correct, no dot in the html. The dot in your CSS flags it as a class, just as "#" flags an ID.

If you are trying to change a border you will need to use the border property:

a.one:link {border: 1px solid #f00}
a.one:visited {border: 1px solid #00f}
a.one:hover {border: 1px solid #fc0}
a.one:active {border: 1px solid rgb(90,00,33)}

HTH

AlwaysLearning

4:04 pm on Aug 21, 2003 (gmt 0)

10+ Year Member



thanks, i'll give it a shot.