Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Html link code with color code + open in new window

Posted by: marcjohnson Dec 15 2013, 11:17 AM

I am trying to add a simple link that will open in a new window with a certain color.
I achieved that :

<a href="http://www.whatever.com" target="_blank">whatever</a>

It's working

But I would like to add the color red to it. (style="color:red")

I tried that : <a href="http://www.whatever.com" target="_blank" style="color:red">whatever </a>

but it doesn't work

I can't get my hand on the right code.

Can u possibly help me ?

thank you.

Marc

Posted by: Christian J Dec 15 2013, 12:33 PM

If the new page is hosted by you, just style the HTML of the new page. But if the new page is hosted by someone else you can't style it.

Posted by: pandy Dec 15 2013, 05:55 PM

QUOTE(marcjohnson @ Dec 15 2013, 05:17 PM) *

But I would like to add the color red to it. (style="color:red")


To what? The background of the page in the new window? Or the text? Or something else?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)