1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 17:53:15 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/howtos/faq/csFAQ_what_this_or_that_tag.tid
Mario Pietsch 19085a1277 Add data attributes to ViewTemplate (#3209)
* change 3 set-widgets to 1 var-widget call. Add data-tags and userClass.

* add new documentation and change the existing one accordingly.
2018-04-24 22:08:20 +01:00

17 lines
376 B
Plaintext

created: 201804111739
modified: 201804111739
title: Q: How can I style a tiddler if it has "this" OR "that" tag?
tags: [[Custom Styles FAQ]]
''Answer:'' <<.from-version "5.1.16">>
Either tag `this` or tag `that` create a red border.
```
[data-tags~="this"],
[data-tags~="that"] {
border: 2px solid red;
}
```
[[Learn more about possible attributes!|Attribute Selectors]]