[resolved] Trying to change a link color (4 posts)

  1. ftb
    Posted 2 years ago #


    I've tried changing a link color using the following code:

    <style type="text/css">
    .red {
    	color: #F0022E;
    this is a <a href="http://www.link.com" target="_blank" class="red">link</a>

    But the color stays blue and I don't know where it comes from.
    How can I change this specific link to the color I want?

    Help would be appreciated.

  2. dbruning22
    Posted 2 years ago #

    That's supposed to work, there might be something overriding the style.

    Try changing it to:

    .red {
    	color: #F0022E!important;

    If it still doesn't work, post a link to the site you're using it on, so I can have a better look at it.

  3. ftb
    Posted 2 years ago #

    thank you!

    I finally used:

    Watch: <a href="http://www.link.com" target="_blank"><font color="#F24A16">link</font></a>

    It worked too. Cheers!

  4. ftb
    Posted 2 years ago #

    what does this !important; means?

Topic Closed

This topic has been closed to new replies.

About this Topic