Folks,
I need some help from a CSS guru.
As you know most websites are single HTML pages, so any CSS in the <style>
tag applies to the whole page. This is used in TiddlyWiki for the user Interface.
However more often than not we may be designing a tiddler where we want to use custom styles. If we use inside a tiddler the <style>
tag it only applies when the tiddler is visible but it applies to everything in tiddlywiki, including all open tiddlers or the sidebar.
It is possible to set up conditional CSS according to tags and fields etc… but this is quite involved especially when you wish to add custom styles only in one tiddlers body.
Does anyone know a method I could use to make use of specific CSS in a specific tiddler body only?
For example rather than select through the use of class names or style="" I may wish to use this CSS;
table, th, td {
border-bottom: 1px solid #ddd;
}
Whilst it targets all three tags table, th, td in one go, it will also tag all tables displayed in tiddlywiki.
How can I use this multiple tag assignment to be used in a single tiddler only without class or styles?
I can not see how to include the above and other CSS in a single class and add it to the tiddler class field.
Thanks in Advance
Post Script
If there is no mechanism to do this perhaps we can introduce one, a way that allows us to use “Native CSS” for a single tiddler, and ideally css which will be included if we export static html.