Page 1 of 1
macroLink - font colour
Posted: Fri Jul 23, 2010 9:02 am
by Blakey
Hello all,
I have a frame which has a macroLink or three on it. All these links are displayed in the default blue colour. This happens to be hard to read on some of the backgrounds I'm displaying the links on. Is there a way to change the colour of the link so-displayed?
Cheers!
Blakey
Re: macroLink - font colour
Posted: Fri Jul 23, 2010 11:25 am
by aliasmask
Code: Select all
<span style='color:red'><a href="http://forums.rptools.net/posting.php?mode=reply&f=20&t=15381">text</a></span>
Just surround it with a span tag and set the style.
Re: macroLink - font colour
Posted: Mon Jul 26, 2010 8:08 am
by Blakey
Just tried this and it works a treat.
Thanks!
Blakey
Re: macroLink - font colour
Posted: Mon Jul 26, 2010 6:27 pm
by biodude
The 'style' attribute also applies to many other tags, not just <span>, so you can also apply it directly to the <a> tag:
Code: Select all
<a href="http://forums.rptools.net/posting.php?mode=reply&f=20&t=15381" style='color:red'>text</a>
This is not always feasible if you are generating links using
Wiki: macroLink(), but does work well with
Wiki: macroLinkText(). Just a little something to keep in mind to help simplify your HTML.
Re: macroLink - font colour
Posted: Tue Jul 27, 2010 7:41 pm
by Raoden
You can also change macroLink colors with CSS. The CSS selector 'a' applies to them.