Click to See Complete Forum and Search --> : formatting links


Dopple
09-13-2004, 05:18 AM
<head>

<link rel="stylesheet" type="text/css" href="Style.css" >

A:link {text-decoration: none; color: #0099FF;}

A:visited {text-decoration: none; color: #0000FF;}

A:hover {text-decoration: none; color: #FF0000;}

</style>

</head>
Can anyone tell me what I'm doing wrong here?

ted_trippin
09-13-2004, 05:32 AM
Wheres your <style> tag to match your </style> tag?

Dopple
09-13-2004, 05:34 AM
;) ta very much! :o

Dopple
09-13-2004, 06:02 AM
Erm. I still can't get it working. I put <style> after the <head> tag but that just got rid of everything that the CSS is doing to the page. If I had hair I'd pull it out right now!

ted_trippin
09-13-2004, 06:05 AM
need to put the style tag after the link tag. Your link tag is importing a file containing a style sheet then you use the <style> </style> tags to enclose extra styles.

<head>
<link ..... >
<style>
.....
</style>
</head>

Dopple
09-13-2004, 06:16 AM
There we go :D :D :D :D :D Thanks!

rhsunderground
09-13-2004, 12:18 PM
you've got a link to a stylesheet and a style tag. is this page special in its link properties? or are the links the same on all the pages?

Dopple
09-14-2004, 02:14 AM
Yeah they're the same in all.

pawky
09-14-2004, 03:42 AM
Originally posted by Dopple
Yeah they're the same in all.

then it will be easier to put everything into an external css file. When u want to change something, u will only have to do it once, which is one thing that makes css so GREAT

Dopple
09-14-2004, 03:45 AM
I tried to put it in my CSS but it wouldn't work.

ted_trippin
09-14-2004, 03:46 AM
You have only got it mentioned once? Are you including the new stuff at the top then overwriting it further down in the file?

Dopple
09-14-2004, 03:52 AM
I can't emember the wasy I phrased it but I thinkit was pretty similar to

A:link {text-decoration: none; color: #0099FF;}

A:visited {text-decoration: none; color: #0000FF;}

A:hover {text-decoration: none; color: #FF0000;}

if not identical. Can anyone change this so that it's CSS friendly?

pawky
09-14-2004, 04:02 AM
Originally posted by Dopple
I can't emember the wasy I phrased it but I thinkit was pretty similar to

A:link {text-decoration: none; color: #0099FF;}

A:visited {text-decoration: none; color: #0000FF;}

A:hover {text-decoration: none; color: #FF0000;}

if not identical. Can anyone change this so that it's CSS friendly?

that looks pretty good though u could also use:
a { text-decoration: none; }
a:link { color: #09f; }
a:visited { color: 00f; }
a:hover { color: f00; }