Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2002
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS not being applied to links to mp3's

    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

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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;}

  • #3
    New Coder
    Join Date
    Nov 2002
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks!

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Shorter

    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...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    New Coder
    Join Date
    Nov 2002
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the good advice.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •