Hi Ton,

Each technique I try fixes something and breaks something else.

Using the tagged option, I get the colors I want, but then TW ignores the 
font size I specify. (it insists on using tc-tiddler-body). It applies the 
font size attribute to the icons and the title but NOT the content of the 
tiddler!

Using the second option, I get the font size I want, but TW ignores my 
margin settings. (well, it doesn't do the background behind the margins).

Ok, after playing with it, I switched from "margin" to "padding" and now it 
works. The trick with the space after the <div> was definitely not 
intuitive.

Thanks!
Mark

On Tuesday, September 30, 2014 7:15:43 AM UTC-8, Ton Gerner wrote:
>
> Hi Mark,
>
> For Stephan's first option see [1]
>
> Create a tiddler, tagged with $:/tags/Styleheet containing:
>
> .tc-tagged-test {
>      color: red;
>      background-color: AliceBlue;
> }
>
> All tiddlers tagged with 'test' will be styled accordingly  (background 
> for total tiddler!).
>
> For Stephan's second option try:
>
> @@color: red;
> @@background-color: AliceBlue;
> <div>
>
> content
>
> ...
>
> content
>
> </div>
> @@
>
> Note:
> * background just for the text
> * the empty lines after <div> and before </div> are required
>
> Hope that helps.
>
> Cheers,
>
> Ton
>
>
> [1] http://tiddlywiki.com/#TiddlerWidget:TiddlerWidget
>
>
> On Tuesday, September 30, 2014 4:21:21 PM UTC+2, Mark S. wrote:
>>
>> Hello,
>>
>> I don't understand the first approach you suggest. If there is a way to 
>> specify a class by tag I couldn't find it at tiddlywiki.com.
>>
>> The second method, surrounding the content with <DIV> tags doesn't work 
>> because all the paragraph information is lost and everything is run 
>> together. You can put <DIV> inside of @@ and then you have background and 
>> paragraph formatting, but other CSS settings like "margin" are ignored.
>>
>> Thanks,
>> Mark
>>
>> On Monday, September 29, 2014 10:03:40 PM UTC-7, Stephan Hradek wrote:
>>>
>>> Give the tiddler a tag and you have a class label "tc-something-class" 
>>> (or so - too lazy to look up).
>>>
>>> You can as well st a div around your tiddler having whatever style you 
>>> want:
>>>
>>> <div class="myclass">
>>>
>>> content here
>>>
>>> </div>
>>>
>>>
>>>
>>> @Jeremy: I seem to remember that we discussed (long, long time ago) 
>>> about @@ creating a div. 
>>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to