tc-tiddler-body is a class used in a div. The H2 tags nests inside it. My grasp of CSS may be rusty, but I don't think CSS cares what tags the classes live in or are nested in unless there happens to be a more specific CSS rule. In any event, the style I showed seems to work on mine. I don't see it turning anything blue except the internal !! lines. Perhaps your actual use-case is something else?
Good luck, Mark On Wednesday, November 2, 2016 at 7:33:02 PM UTC-7, Shay Shaked wrote: > > Mark, > > wish it was that easy hehe. I've been playing with styles (and inspecting > elements) for a while. The problem is that tc-tiddler-body is not a > class, it's a <div>... however the only way I know to call a div in CSS is > if it has an ID, and these divs do not. > > On Wednesday, November 2, 2016 at 10:28:37 PM UTC-4, Mark S. wrote: >> >> Something like this might work: >> >> .tc-tiddler-body h2{ >> color:blue; >> } >> >> If you have firefox, you can right click on an element and use "Inspect >> Element" to see what the various classes used in setting up the tiddler. >> >> Good luck, >> Mark >> >> On Wednesday, November 2, 2016 at 6:02:25 PM UTC-7, Shay Shaked wrote: >>> >>> So, another CSS question from yours truely. >>> >>> I'm trying to figure out how to write CSS for *just *the h2 headers >>> inside a tiddler, following a title. >>> >>> TiddlyWiki currently use h2 in many places, including the Tiddler's >>> title and the Wiki's title. I don't want these affected. I would create a >>> class for that, but I don't know how to tell TW to run this class every >>> time I write in !! for a title. Is this part editable? Can I find the line >>> of code where TW gets that !! is, in fact, <h2>? If I can find that, then I >>> can change !! to a certain class of <h2> and all will be good. >>> >>> Thanks! >>> >> -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0d29f301-6f46-45aa-b4b4-94e0dfa6ba13%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.