Perfect thank you!
Out of curiousity, why *does* this work? As far as I know a.myClass will
select any link element that has the class myClass, but why doesn't .myClass
work? Shouldn't it select any element with the class myClass, which would
naturally include any link element with that class?
On Monday, 26 July 2021 at 19:21:54 UTC+1 Brian Radspinner wrote:
> 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/2698f5fe-e81f-454b-b8a1-a054419072d6n%40googlegroups.com.