Although HTML `<pre>` elements can display multiple lines of text, each line is not a separate child element. Thus, a CSS rule such as `nth-child(even)` doesn't have any effect within the `<pre>` element.
-e On Sunday, February 20, 2022 at 4:13:04 PM UTC-8 [email protected] wrote: > Hello all, title says it all. > > When trying to apply nth-child(even) to use a background color for each > line when using <pre> in my tiddlers, it doesn't seem to work, and I'm not > entirely sure whats causing this. > > Any suggestions? > -- 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/3552f609-86ba-4623-83bc-d8af5160aa58n%40googlegroups.com.

