And the .classname works elsewhere eg the class "g" in the stylesheet .g { 
css }

;.g text
:.g text
*.g text
#.g text

Tones
On Monday, 9 August 2021 at 03:32:59 UTC+10 Soren Bjornstad wrote:

> Somewhat off-topic, but:
>  
>
>> BTW, the "period" in front of class names always confuses me, sometimes I 
>> need it, and other times no - ?
>>
>
> Class names don't include a period, but you need a period when you're 
> using it in a CSS selector (the start of a CSS rule in a stylesheet that 
> comes before the {) to indicate that it's a class name rather than an HTML 
> tag name. So it's 'class="whatever"' but '.whatever { color: blue; }'. If 
> you said 'whatever { color: blue; }', then you would be trying to style all 
> the 'whatever' tags in the document instead of all tags of any kind that 
> have the 'whatever' class assigned.
>
> You also need the . for the @@ syntax in TiddlyWiki (e.g., '@@.whatever 
> (text) @@') for similar reasons (otherwise you couldn't tell the difference 
> between a style attribute like "color" and a class called "color").
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9cc23f2a-e39d-4934-869b-334e5c0d1017n%40googlegroups.com.

Reply via email to