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
macroLink - font colour
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
macroLink - font colour
The guy in the green hat.
Re: macroLink - font colour
Code: Select all
<span style='color:red'><a href="http://forums.rptools.net/posting.php?mode=reply&f=20&t=15381">text</a></span>
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: macroLink - font colour
Just tried this and it works a treat.
Thanks!
Blakey
Thanks!
Blakey
The guy in the green hat.
Re: macroLink - font colour
The 'style' attribute also applies to many other tags, not just <span>, so you can also apply it directly to the <a> tag:
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.
Code: Select all
<a href="http://forums.rptools.net/posting.php?mode=reply&f=20&t=15381" style='color:red'>text</a>
"The trouble with communicating is believing you have achieved it"
[ d20 StatBlock Importer ] [ Batch Edit Macros ] [ Canned Speech UI ] [ Lib: Math ]
[ d20 StatBlock Importer ] [ Batch Edit Macros ] [ Canned Speech UI ] [ Lib: Math ]
Re: macroLink - font colour
You can also change macroLink colors with CSS. The CSS selector 'a' applies to them.
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton
Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0
- G. K. Chesterton
Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0