[before content]Some listed tiddler[after content]
[before content] Same listed tiddler [after content]
<a>
Tiddler title
</a>
<a>Tiddler title</a>
Kalcifer |
\define name(param)
\whitespace trim
concatenate here $(variablename)$/$param$
\end
div.tc-tab-content.tc-vertical a::before {
content: "[before]";
}
div.tc-tab-content.tc-vertical a::after {
content: "[after]";
}
Kalcifer This looks right, but I am no CSS expert, perhaps someone else can help. However if I understood what you are doing with you lists I can give you a WikiText solution. Regards Tony |
div.tc-tab-content.tc-vertical a::before {
content: "[before]";
}
div.tc-tab-content.tc-vertical a::after {
content: "[after]";
}
<a>
Tiddler title
</a>
[before] Tiddler title [after]
<a>Tiddler title</a>
[before]Tiddler title[after]
You should create a github issue ...
I think the space is deliberate.
I'm wondering if it would be possible to use CSS to move the ::before over 1em ?
Yeah, I'll do that.
I'm wondering if it would be possible to use CSS to move the ::before over 1em ?Don't waste your time trying to find a CSS solution to a HTML problem, I've exhausted all the possibilities.
/* See 'sidebar -> More -> All' for example output */
.tc-tab-content a::before {
position: relative ;
content: "[before]";
left: 2px ;
}
.tc-tab-content a::after{
content: "[after]";
position: relative ;
left: -2px ;
}
On Wednesday, April 1, 2020 at 11:04:39 AM UTC-7, Kalcifer Kandari wrote:Yeah, I'll do that.I'm wondering if it would be possible to use CSS to move the ::before over 1em ?Don't waste your time trying to find a CSS solution to a HTML problem, I've exhausted all the possibilities.One reason you might want a CSS solution is because once you hack a core tiddler you have to keep track of your changes. Otherwise you might have conflicts when upgrading.
I think it's worth an issue and it should be fixed in the core.