Try this:




*<style>a.myClass {color:green;}</style><$link class=myClass to="Hello"/>*

On Monday, July 26, 2021 at 10:09:46 AM UTC-7 Si wrote:

> I'm trying to create a template using the link widget that gives me green 
> links. I tried the following which does not work:
>
> <style>
> .myClass {color:green;}
> </style>
>
> <$link class=myClass to="Hello"/>
>
> I know about the overrideClass attribute, but using this means that I 
> loose all the other styling that normally applies to links (for example 
> italicising missing tiddlers).
>
> *Is there a way to get green links without changing the rest of the 
> styling for links?*
>
> Note: I don't want to change the color for every link in my wiki, just for 
> a specific template.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/98f59147-53b2-4109-a81d-fcc6385b7024n%40googlegroups.com.

Reply via email to