Support » Plugins and Hacks » Hacks » Trying to change a link color

  • Resolved ftb

    (@misomaybe)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    ftb

    (@misomaybe)


    thank you!

    I finally used:

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

    It worked too. Cheers!

    ftb

    (@misomaybe)


    what does this !important; means?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to change a link color’ is closed to new replies.