...

View Full Version : CSS not being applied to links to mp3's



axcxe
12-31-2002, 01:21 AM
Hi, I am using a style sheet to define the colors of links, my code is:

<style type="text/css">
<!--
a:link { font-family: Arial; font-size: 12-small; color: #CCCCCC; text-decoration: none;}
a:hover { font-family: Arial; font-size: 12-small; color: #FFFFFF; text-decoration: none;}
a:visited { font-family: Arial; font-size: 12-small; color: #000000; text-decoration: none;}
body { background-color: #999999; }
-->

The email to link uses the stylesheet's colors, but the links to mp3 files are not using the sheets colors. I am using dreamweaver mx. Any help is appreciated, garrett

Nightfire
12-31-2002, 01:46 AM
Stylesheets don't work by what file is in the anchor tag.

a:active{ font-family: Arial; font-size: 12-small; color: #CCCCCC; text-decoration: none;}
a:link { font-family: Arial; font-size: 12-small; color: #CCCCCC; text-decoration: none;}
a:hover { font-family: Arial; font-size: 12-small; color: #FFFFFF; text-decoration: none;}
a:visited { font-family: Arial; font-size: 12-small; color: #000000; text-decoration: none;}

axcxe
12-31-2002, 02:13 AM
thanks!

ronaldb66
12-31-2002, 08:58 AM
Tip: specify font-family, font-size and text-decoration for the a element itself and specify only the different colors with the speudo-classes: looks more compact, neater, and makes the real difference in definition for each pseudo-class stand out more.
Just nitpicking... :D

axcxe
01-01-2003, 07:48 PM
Thanks for the good advice.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum