mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +00:00
79e2e317cf
Add tag to include this tiddler in the list in the tiddler https://tiddlywiki.com/prerelease/#How%20to%20apply%20custom%20styles
31 lines
632 B
Plaintext
31 lines
632 B
Plaintext
created: 20131205160532119
|
|
modified: 20131205160549129
|
|
tags: WikiText [[How to apply custom styles]]
|
|
title: Styles and Classes in WikiText
|
|
type: text/vnd.tiddlywiki
|
|
caption: Styles and Classes
|
|
|
|
You can use this construction to cause the wrapped content to be assigned specified CSS classes or styles:
|
|
|
|
<<wikitext-example src:"@@.myStyle
|
|
* List One
|
|
* List Two
|
|
@@
|
|
">>
|
|
|
|
Similar syntax is used to assign styles. For example:
|
|
|
|
<<wikitext-example src:"@@background-color:red;
|
|
* List One
|
|
* List Two
|
|
@@
|
|
">>
|
|
|
|
Multiple styles and classes can be mixed. For example:
|
|
|
|
<<wikitext-example src:"@@.tc-tiddler-frame
|
|
@@width:400px;
|
|
Some text
|
|
@@
|
|
">>
|