Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: Help with CSS

  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    17
    Member #
    1303
    Does anyone know how to have two different style sheets for links on one page. I am using this code in the head:
    <STYLE TYPE="text/css">
    a:link{color:#FFFFFF; text-decoration:none}
    a:visited{color:#FFFFFF; text-decoration: none}
    a:hover{color:#0099FF; text-decoration: none}
    a{text-decoration:none}
    </STYLE>

    But It turns all my links the same color. I would like to be able to use this code twice on the same page but with different colors. Is there a code i need to use so that I can have two styles of rollovered links on the smae page?

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    a.class:link
    a.class:visited etc

    Just use the <a href="somewhere.html" class="class"> Hope that helps.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Junior Member
    Join Date
    May 2003
    Posts
    17
    Member #
    1303
    Thank you so much Brak, it worked.

  5. #4
    Junior Member
    Join Date
    Jun 2003
    Posts
    3
    Member #
    1589
    Another Option

    Hey,

    I have a different solution to the same problem.

    <LINK REL="stylesheet" type="text/css" href="myStyles.css">
    <LINK REL="stylesheet" type="text/css" href="myStyles2.css">

    This works also,

    Brent
    Biz Shopping Cart
    service@bizshoppingcart.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:56 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com