change bullet list

132 views
Skip to first unread message

tobaisch

unread,
Dec 20, 2017, 9:39:05 AM12/20/17
to TiddlyWiki
Hello,
How can i change a bit the unsorted standard list, which one generates with a "*" or  a "**".
I would especially like the second sublist in a smaller font and without a circle at the beginning.
THX
Regards
Tom

Joshua Fontany

unread,
Dec 20, 2017, 4:58:11 PM12/20/17
to TiddlyWiki
This can be accomplished with a CSS Stylesheet tiddler.

Create a tiddler and name it anything you want.

Tag it with "$:/tags/Stylesheet". Paste the following into the text field and save it.

ul ul, ol ul { list-style-type: none; }
ul ul li, ol ul li { font-size: smaller; }


This will affect all nested lists, so if you go to a 3rd "sub" level, it will have an even smaller font size than the 2nd sub-level (and no circle/dot).

If this is unwanted, you can define similar "child of" CSS selectors to set the behavior of sub-lists 3 levels or below.

Best,
Joshua Fontany 

tobaisch

unread,
Dec 20, 2017, 5:26:55 PM12/20/17
to TiddlyWiki

Yeees! Exactly, i was looking for that.
Especially the style types
ul ul, ol ul with this double spelling I've never heard of it.
It works perfect anyway.
Thanks Joshua
Regards
Tom

S. S.

unread,
Oct 8, 2018, 1:25:30 AM10/8/18
to TiddlyWiki
Though this is a year old topic, I thought I would leave a note here how this helped me.

I wanted to make a list using letters instead of numbers or bullets - of the type:

   a. Item 1
   b. Item 2
   c. Item 3

Not being that conversant with  CSS, this post, along with TW's page Styles and Classes in WikiText, and w3schools.com - CSS list-style Property  - helped to make it easier.

While at w3schools.com, I found there are many different styles available there for making lists as well using the CSS list-style-type Property

This below is what I used:


@@list-style-type:lower-alpha;
* Item 1                      
* Item 2                      
* Item 3                      
@@                            


Thanks

Reply all
Reply to author
Forward
0 new messages