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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to change link color?

    If I make a hyper link, its color is blue by default, I studied about this sort of coding in 2002 and now forgotten everthing, also never needed again to change hyper link color. Now a client is asking me to change all links into black and I searched a blot but could not find anything.
    Please tell me about html coding about it.

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Code:
    a { color: #000; }
    if you set individual colors to the links, they will override this command.
    Code:
    .nav a { color: #DDD; }
    ^ will override a {color: #000; }

    you can also try to use

    Code:
    * a { color: #000; }

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Sammy12 View Post
    Code:
    * a { color: #000; }
    I have the same question, could you please tell me where and how to put these codes, like here is my link

    I am giving [ url=mysite]link[ /url] here

    now this word link will be blue and want its color black.

  • #4
    New Coder
    Join Date
    Aug 2011
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    knock knock, i've to make a link color black but i cannot write link here as i may be declared spammer, well that is a url coded link, how to make it black in simple notepad coding html tags.

    Not to change css. only change in line link color to black
    Last edited by nvd650; 08-06-2011 at 02:10 AM.

  • #5
    New Coder
    Join Date
    Jul 2011
    Location
    Canada
    Posts
    60
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Smile

    I believe if you wanted to change the color of your links you would use CSS.
    Would you like to change the hover, active link, visited link or just the link?

  • #6
    New Coder
    Join Date
    Aug 2011
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by samxdesigns View Post
    I believe if you wanted to change the color of your links you would use CSS.
    Would you like to change the hover, active link, visited link or just the link?
    there is link on www flightsfortravel com there is a link in bold with flights for travel, i've to make it black. only this link

  • #7
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Quote Originally Posted by nvd650 View Post
    knock knock, i've to make a link color black but i cannot write link here as i may be declared spammer, well that is a url coded link, how to make it black in simple notepad coding html tags.

    Not to change css. only change in line link color to black
    knock knock. inline style isn't even strict supported. just use the css I provided earlier. I can't even think of a reason why you wouldn't want to use css

  • #8
    New Coder
    Join Date
    Jul 2011
    Location
    Canada
    Posts
    60
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Sammy12 View Post
    knock knock. inline style isn't even strict supported. just use the css I provided earlier. I can't even think of a reason why you wouldn't want to use css
    I agree with Sammy12, why wouldn't you want to use CSS?

  • #9
    New to the CF scene
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanh you dooo0 useful information!!!!



    tham tu - thám tử

  • #10
    New Coder
    Join Date
    Aug 2011
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Sammy12 View Post
    knock knock. inline style isn't even strict supported. just use the css I provided earlier. I can't even think of a reason why you wouldn't want to use css
    Actually I need an internal link for my client regarding SEO but client says that links on page are not beautiful for the site, so I want to give the link but with no color. so that it may not look bad

  • #11
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    How many links you want same color like plain text and It is required on 1 page only or on all pages??

  • #12
    Regular Coder
    Join Date
    Nov 2005
    Posts
    329
    Thanks
    3
    Thanked 19 Times in 19 Posts
    To change only one link (which does not change on hover, active, or visited):

    <a href="Mylinkedpage.html"><font-color="red">Example Link</font></a>

    If not, the .css usually used is:

    a:link { color: #000cc; }
    a:visited { color: #ffff00; }
    a:active { color: #ff0000; }
    a:hover { color: #ffffff;}

  • Users who have thanked Avril for this post:

    nvd650 (08-14-2011)

  • #13
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yes try this it will work as in example of this <b><a style="color: #000000; text-decoration: none" href="http://www.solution21inc.com/web_design/website-design/plastic-surgeon-websites.htm">Plastic Surgeon Websites</a></b>
    and will be shown like this Plastic Surgeon Websites

  • Users who have thanked danny21ngo for this post:

    nvd650 (08-14-2011)

  • #14
    New Coder
    Join Date
    Aug 2011
    Location
    Fuquay Varina NC
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by flightsjabri View Post
    If I make a hyper link, its color is blue by default, I studied about this sort of coding in 2002 and now forgotten everthing, also never needed again to change hyper link color. Now a client is asking me to change all links into black and I searched a blot but could not find anything.
    Please tell me about html coding about it.
    I believe you can also try <A href="somepage.html" style="color: #00a000">Visit Somepage</A>

  • Users who have thanked FuquayDentist for this post:

    nvd650 (08-14-2011)

  • #15
    New Coder
    Join Date
    Aug 2011
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by fooo0 View Post
    Here is a few ways to change and control the color of hyperlinks. Hyperlinks can be made to change colors by adding a style sheet to your HTML and editing the following Anchor Pseudo-classes:

    Link: The color of an un-visited link.
    Visited: The color of a visited link.
    Active: The color of the link when it is clicked. The link will remain that color when users hit the Back Button after visiting the link destination.
    Hover: The color of the link when the mouse hovers over it.


    exe

    Thanks a lot to all of you, I've got the solution after all. It was exactly as Danny Ngo said, I guess that is called in line color change. And any body also please tell me to change font of this kind of link in style tag.

    Thanks in advance


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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