Hi James

I able to apply the class on my table, but the table header remain as
> default grey color.  Is there any way I can change it?
>

You'll also need to create a stylesheet that defines the appropriate class;
apologies I took it from your earlier post that you already had one set up.
To define a new stylesheet, create a tiddler with the tag
$:/tags/Stylesheet and the following content:

html table {
border: 1px solid red;
}

html table th, html table td {
border-top: 1px solid blue;
border-left: 1px solid green;
}

html table thead tr td, html table th {
background-color: purple;
}

html table tfoot tr td {
background-color: orange;
}

By the way, if all you want to do is to globally change the table header or
footer background colours then you can do so by creating a custom palette -
see the "Appearance"/"Palette" tab of control panel.

Best wishes

Jeremy





>
>
>
> On Tuesday, 12 May 2015 04:06:43 UTC+8, Jeremy Ruston wrote:
>>
>> Hi James
>>
>> You can add a class to a table with a special row marked with a "k" like
>> this:
>>
>> |myclass|k
>> |the |rest |of |my |table |
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>> On Mon, May 11, 2015 at 3:13 AM, James <[email protected]> wrote:
>>
>>> The table design, especially the table header fall back to the default
>>> design "grey color" when I use the classic "@@." command to define the CSS
>>> style for my table.
>>> When I define it in HTML format, "<Table Class="".." it seems ok.
>>>
>>> Can anyone guide me on this?
>>>
>>> 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 http://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/943ac901-5dea-433c-ba90-c54bd546c03a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/943ac901-5dea-433c-ba90-c54bd546c03a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJZ%2BoQtCaEpuKJN3SHQt4L8axFPWit02GprDUWPXfxDGCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to