This bullet list... @@.mystyle * foo *** bar @@
...has a depth of three. I would like to access this number in .mystyle to use it to style the width of the whole ul e.g in css width:calc(ULDEPTH * 20px) In css3, styles cannot be applied to a *parent node* based on the number of children it has. It does seem possible with js <https://stackoverflow.com/questions/22248432/calculate-depth-of-unordered-list> . How could this be done in TW? <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/6d532bbd-7667-4d3b-8c79-5cea910b6e39%40googlegroups.com.