diff --git a/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid b/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid index 22c8f66d47..2145624a6a 100644 --- a/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid +++ b/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid @@ -1,6 +1,6 @@ caption: HTML created: 20131205160816081 -modified: 20241025073517909 +modified: 20260821065251883 tags: WikiText title: HTML in WikiText type: text/vnd.tiddlywiki @@ -68,26 +68,4 @@ In an extension of conventional HTML syntax, attributes of elements and widgets !! Style Attributes -TiddlyWiki supports the usual HTML ''style'' attribute for assigning CSS styles to elements: - -``` -
Hello
-``` - -<<.from-version "5.2.2">> In an extension to HTML, TiddlyWiki also supports accessing individual CSS styles as independent attributes. For example: - -``` -
Hello
-``` - -The advantage of this syntax is that it simplifies assigning computed values to CSS styles. For example: - -``` -
Hello
-``` - -<<.from-version "5.3.6">> TiddlyWiki also supports setting [[CSS custom properties|https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties]] as independent attributes. For example: - -``` -
Hello
-``` +{{Style Attributes}} \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/wikitext/Style Attributes.tid b/editions/tw5.com/tiddlers/wikitext/Style Attributes.tid new file mode 100644 index 0000000000..9b24aa6cd1 --- /dev/null +++ b/editions/tw5.com/tiddlers/wikitext/Style Attributes.tid @@ -0,0 +1,29 @@ +created: 20260821065249926 +modified: 20260821065326363 +tags: [[HTML in WikiText]] [[How to apply custom styles]] +title: Style Attributes +type: text/vnd.tiddlywiki + +TiddlyWiki supports the usual HTML ''style'' attribute for assigning CSS styles to elements: + +``` +
Hello
+``` + +<<.from-version "5.2.2">> In an extension to HTML, TiddlyWiki also supports accessing individual CSS styles as independent attributes. For example: + +``` +
Hello
+``` + +The advantage of this syntax is that it simplifies assigning computed values to CSS styles. For example: + +``` +
Hello
+``` + +<<.from-version "5.3.6">> TiddlyWiki also supports setting [[CSS custom properties|https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties]] as independent attributes. For example: + +``` +
Hello
+``` \ No newline at end of file