I do not agree. I don't have a better idea of what exactly tc-tiddler-body
is, but from what I know, classes have a period (so, it should be
.tc-tiddler-body and it's not). Either way, I did try to call
tc-tiddler-body in my CSS code and nothing happened. It is not recognized.
I have a certain font for <h2> right now, so all h2 are affected. if I add
tc-tiddler-body for that, so that h2.tc-tiddler-body, nothing happens. Even
if call tc-tiddler-body itself was possible, it would affect the entire
div, so I will not get a highlight under the <h2> in it.
Let me know if you have more ideas? Thanks for helping out!
On Wednesday, November 2, 2016 at 11:41:47 PM UTC-4, Mark S. wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/47ac3353-4ada-46e6-9e29-7611fc9859aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.