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 8 of 8
  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    12
    Member #
    1474
    *css newbie alert* I have never used css before and now need a way to make links different colours on the same page (white within menu bar, black elsewhere on the page). Please can someone tell me what I need to do?

    thanks

    Dan

  2.  

  3. #2
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Location
    Englandshire, United Kingdomsville y'all!
    Posts
    1,111
    Member #
    1206
    Liked
    1 times
    <style>
    .link_one {color: lime}
    .link_two {color: pink}
    </style>
    <a href="lime.htm" class="link_one">The world of lime</a>
    <a href="pink.htm" class="link_two">The world of pink</a>

  4. #3
    Senior Member mafunk's Avatar
    Join Date
    Sep 2003
    Posts
    115
    Member #
    3277
    I love CSS you can do so much with it. Take a look at this site, which uses css to use all kinds of different text colors, backgroud colors, link colors, fonts, etc. .
    www.printdiva.com

    If you want me to I can pm you the style sheet so that you can see how it's done.
    MaFunk

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Got a typo on that site, mafunk (among other things). "Flyers" is misspelled in that graphic.

    http://www.w3schools.com/css/default.asp

    is an excellent tutorial for the total "n00b" as well.

    As far as your CSS specifically would go, it'd look something like this.
    Code:
    A {
         color:  #000000;
    }
    A.menu {
        color:  #FFFFFF;
    }
    Anything before a . refers to the tag t which the CSS is being applied. A (or anchor) would be the tag in this case.

    Anything following the . would refer to the CSS class to which the CSS would be applied. In this case, the "A.menu" style would be applied to all A tags with the class "menu" (similar to the way in which mossoi has referenced them.)

    By the way, mossoi...lime and pink? Dude...buddy...homie...pimp daddy...you need some help, dawg.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Senior Member mafunk's Avatar
    Join Date
    Sep 2003
    Posts
    115
    Member #
    3277
    Wow- thanks for the tip on the typo. I've had MANY MANY people review the site, and not one caught that!

    In terms of the "among other things" - the site is still under constructions, so there are a still loose ends. That said, the CSS is absolutely beautiful, and working exactly as it's intended to, so may be helpful to this person if they want to see a long, complex style sheet.

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You're very welcome!
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  8. #7
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Location
    Englandshire, United Kingdomsville y'all!
    Posts
    1,111
    Member #
    1206
    Liked
    1 times
    By the way, mossoi...lime and pink? Dude...buddy...homie...pimp daddy...you need some help, dawg.
    Well I thought I'd make the difference obvious

  9. #8
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Well you did that and then some.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


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:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com