25 users online (2 members and 23 guests)  


  Results 1 to 11 of 11

Related

  1. Help with text colors    Forum: Myspace Forum
    Replies: 0
  2. Link colors    Forum: CSS Forum
    Replies: 7
  3. Background colors. How?    Forum: HTML Forum
    Replies: 2
  4. Replies: 3
  1. #1
    uroboros's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    4

    Question I don't want my links to change colors

    Is that even possible?

    There will be text in 3 different colors. The colors are codes for free items, paying items, and group items.

    And they are links...

    So I don't want the colors to be the active, visited, etc. link colors.

    Maybe you experts know a trick or two to get around it.

  2. #2
    antithesis's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    9
    okay, it looks like you're going to want multiple colors of links on the same page, correct? if not, that's super simple, and i'll include that at the bottom, but here's how you would do multiple colors on the same page

    here is example HTML code for two links, one being blue, and one being red, even if it is active, or has been visited:
    Code:
    <a href="link1.htm" class="blue">Blue Link</a>
    <a href="link2.htm" class="red">Red Link</a>
    and here is the actual code that will make the links stay the same color (or if you want to change it, go whichever color you choose. you can use the color names instead of the hex numbers.). paste your version of this in the HEAD area of your page:

    Code:
    <style type="text/css">
    <!--
    a.blue:link {color: #0000ff;}
    a.blue:active {color: #0000ff;}
    a.blue:visited {color: #0000ff;}
    a.blue:hover {color: #0000ff;}
    
    a.red:link {color: #ff0000;}
    a.red:active {color: #ff0000;}
    a.red:visited {color: #ff0000;}
    a.red:hover {color: #ff0000;}
    -->
    </style>
    If you wanted to add a third color, say green, you would replace the word "blue" in the style part with "green" or, make sure you also change the hex code to a green color, and then in the HTML, the CLASS must equal "green". it doesn't have to be colors, its just that where blue is in the STYLE section is the class name. hope that clears things up.

    If you just want to have one color for all the links on the page, and have them stay the same color, add the following attributes to the BODY tag:

    Code:
    LINK="RED" ALINK="RED" VLINK="RED"

  3. #3
    uroboros's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2004
    Posts
    4

    uroboros

    It works, it WORKS!!!

    Thanks a million!

  4. #4
    kdlkisdel's Avatar
    New User

    Status
    Offline
    Join Date
    May 2012
    Posts
    1

    Re: I don't want my links to change colors

    Quote Originally Posted by antithesis View Post
    okay, it looks like you're going to want multiple colors of links on the same page, correct? if not, that's super simple, and i'll include that at the bottom, but here's how you would do multiple colors on the same page

    here is example HTML code for two links, one being blue, and one being red, even if it is active, or has been visited:
    Code:
    <a href="link1.htm" class="blue">Blue Link</a>
    <a href="link2.htm" class="red">Red Link</a>
    and here is the actual code that will make the links stay the same color (or if you want to change it, go whichever color you choose. you can use the color names instead of the hex numbers.). paste your version of this in the HEAD area of your page:

    Code:
    <style type="text/css">
    <!--
    a.blue:link {color: #0000ff;}
    a.blue:active {color: #0000ff;}
    a.blue:visited {color: #0000ff;}
    a.blue:hover {color: #0000ff;}
    
    a.red:link {color: #ff0000;}
    a.red:active {color: #ff0000;}
    a.red:visited {color: #ff0000;}
    a.red:hover {color: #ff0000;}
    -->
    </style>
    If you wanted to add a third color, say green, you would replace the word "blue" in the style part with "green" or, make sure you also change the hex code to a green color, and then in the HTML, the CLASS must equal "green". it doesn't have to be colors, its just that where blue is in the STYLE section is the class name. hope that clears things up.

    If you just want to have one color for all the links on the page, and have them stay the same color, add the following attributes to the BODY tag:

    Code:
    LINK="RED" ALINK="RED" VLINK="RED"
    =================================================


    Thank you so much!

  5. #5
    kimberlybosgat's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2012
    Posts
    3

    Re: I don't want my links to change colors

    Quote Originally Posted by uroboros View Post
    Is that even possible?

    There will be text in 3 different colors. The colors are codes for free items, paying items, and group items.

    And they are links...

    So I don't want the colors to be the active, visited, etc. link colors.

    Maybe you experts know a trick or two to get around it.
    Just like this: cometodeal
    How to make it to be with the color that I want?

  6. #6
    ronitmathurseo's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2012
    Posts
    1

    Re: I don't want my links to change colors

    Hey For stopping color of anchor text you can you Style sheet(CSS) in CSS set the property of hover to same as anchor text for example.

    a
    {
    font-color:#00cc00;
    font-size:15px;
    }
    a:hover
    {
    font-color:#00cc00;
    font-size:15px;
    }

    May this help you.

  7. #7
    John013's Avatar
    Disabled

    Status
    Offline
    Join Date
    Jul 2012
    Posts
    10

    Re: I don't want my links to change colors

    Quote Originally Posted by antithesis View Post
    okay, it looks like you're going to want multiple colors of links on the same page, correct? if not, that's super simple, and i'll include that at the bottom, but here's how you would do multiple colors on the same page

    here is example HTML code for two links, one being blue, and one being red, even if it is active, or has been visited:
    Code:
    <a href="link1.htm" class="blue">Blue Link</a>
    <a href="link2.htm" class="red">Red Link</a>
    and here is the actual code that will make the links stay the same color (or if you want to change it, go whichever color you choose. you can use the color names instead of the hex numbers.). paste your version of this in the HEAD area of your page:

    Code:
    <style type="text/css">
    <!--
    a.blue:link {color: #0000ff;}
    a.blue:active {color: #0000ff;}
    a.blue:visited {color: #0000ff;}
    a.blue:hover {color: #0000ff;}
    
    a.red:link {color: #ff0000;}
    a.red:active {color: #ff0000;}
    a.red:visited {color: #ff0000;}
    a.red:hover {color: #ff0000;}
    -->
    </style>
    If you wanted to add a third color, say green, you would replace the word "blue" in the style part with "green" or, make sure you also change the hex code to a green color, and then in the HTML, the CLASS must equal "green". it doesn't have to be colors, its just that where blue is in the STYLE section is the class name. hope that clears things up.

    If you just want to have one color for all the links on the page, and have them stay the same color, add the following attributes to the BODY tag:

    Code:
    LINK="RED" ALINK="RED" VLINK="RED"
    Thanks a lot!

  8. #8
    maxsamuel's Avatar
    Disabled

    Status
    Offline
    Join Date
    Jul 2012
    Posts
    4

    Re: I don't want my links to change colors

    all the above post are good and informative. and no need to post any more answer as it is already solved and i hold the same opinion which is posted above.

  9. #9
    Bella Anderson's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2012
    Posts
    1

    Exclamation Re: I don't want my links to change colors

    There is the same problem i am facing i do not want that my links will change color under <a> tag .
    Please suggest me the easiest way as i am a beginner

  10. #10
    raybackjoe's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2013
    Posts
    1
    It does the job, it WORKS!!!

  11. #11
    jully6686's Avatar
    Disabled

    Status
    Offline
    Join Date
    Oct 2014
    Posts
    2

    Re: I don't want my links to change colors

    you can define the link color which you would like to display in your .css file, that can helps you



Tags for this Thread