View Full Version : Is this the right way for my css?


malachithree10
11-21-2003, 12:20 PM
<style TYPE="text/css">
A {color: #000080; text-decoration:none}
A:link {color: #000080; text-decoration:none}
A:visited {color: #000080; text-decoration:none}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #000080; text-decoration:none}
A:link {color: #000080; text-decoration:}
A:visited {color: #000080; text-decoration:}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #000080; text-decoration:none}
A:link {color: #000080; text-decoration:none}
A:visited {color: #000080; text-decoration:none}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #800080; text-decoration:none}
A:link {color: #000080; text-decoration:none}
A:visited {color: #000080; text-decoration:none}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #000080; text-decoration:bold}
A:link {color: #000080; text-decoration:underline overline}
A:visited {color: #000080; text-decoration:underline overline}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #ffffff; text-decoration:none}
A:link {color: #ffffff; text-decoration:none}
A:visited {color: #ffffff; text-decoration:none}
A:hover {color: #FFFFFF; text-decoration:underline overline}
A {color: #800080; text-decoration:none}
A:link {color: #000080; text-decoration:none}
A:visited {color: #000080; text-decoration:none}
A:hover {color: #FF4040; text-decoration:underline overline}
A {color: #800080; text-decoration:none}
A:link {color: #000080; text-decoration:none}
A:visited {color: #000080; text-decoration:none}
A:hover {color: #FF4040; text-decoration:underline overline}
</style>
<style TYPE="text/css">

a
{font-family: 'Trebuchet MS', Arial, Helvetica; color: #000000 ; text-decoration: none; }
a:hover
{ font-family: 'Trebuchet MS', Arial, Helvetica; text-decoration: underline; }
.bodytext
{font-family: arial,ms sans serif; font-size: 8pt; color: #000000;}

</style>

Everything seems to be working ok I think. LOL
Thanks.

pb&j
11-21-2003, 04:46 PM
you seem to have alot of repeating things. css will take the last known value of things to apply them to your links.

if you take away all of the extra coding, i think this will be left over for you...

<style TYPE="text/css">
a {font-family: 'Trebuchet MS', Arial, Helvetica; color: #000080; text-decoration: none;}
a:hover {color: #FF4040; text-decoration:underline overline;}
.bodytext
{font-family: arial,ms sans serif; font-size: 8pt; color: #000000;}
</style>


(if this coding is on an "external" style sheet, delete the STYLE tags from the top and bottom too.)