WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mm
    Member
    Posted 7 months ago #

    Hi,

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

    <style type="text/css">
    .red {
    	color: #F0022E;
    }
    </style>
    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
    Member
    Posted 7 months 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. mm
    Member
    Posted 7 months 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. mm
    Member
    Posted 7 months ago #

    what does this !important; means?

Reply

You must log in to post.

About this Topic