Eric,  Perhaps any other css master,

I do not mean to wander too far from the OT but it seems appropriate to 
raise this.

This .myBullets class is functional but is there any other way to define 
all these css settings without repeating the major class name?, in part 
because it would be nice to repeat this in other circumstances or make the 
class name a local variable.

I will explore this myself in time but I am looking for a simpler workflow.

Regards
Tony

On Friday, 28 August 2020 12:39:25 UTC+10, Eric Shulman wrote:
>
> On Thursday, August 27, 2020 at 5:15:57 PM UTC-7, TW Tones wrote:
>>
>> This method will apply the styles to any list open on screen even in 
>> other tiddlers, if the one containing the style is displayed.
>> Can you suggest the simple method to ensure these custom styles apply 
>> only in the current tiddler?, perhaps we use a section or div around the 
>> content of the tiddler?
>>
>
> Indeed, it is as simple as wrapping the bullet list in a div with a named 
> class, and using that class in the CSS declarations, like this:
> <style>
> .myBullets li {list-style-type: decimal; }
> .myBullets li li {list-style-type: lower-alpha; }
> .myBullets li li li {list-style-type: lower-roman; }
> .myBullets li li li li {list-style-type: circle; }
> </style>
> <div class="myBullets">
>
> # Some random Question
> ## Subsection 1
> ## Subsection 2
> # Another Random Question
> ## Subsection 1
> ### Subsection 1.1
> ### Subsection 1.2
> ## Subsection 2
> ### Subsection 2.1
> ### Subsection 2.2
> # One More Random Question
> ## Subsection 1
> ### Subsection 1.1
> #### Subsection 1.1.1
> ##### Subsection 1.1.1
> </div>
>
> -e 
>

-- 
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/257a709e-4365-4f9c-9cd6-77667f438072o%40googlegroups.com.

Reply via email to