The following content placed in a tiddler, shows how to remove the blank line between paragraphs, after TiddlyWiki renders content (determines the <p>
tags).
Try it on TiddlyWiki.com
<p>First paragraph.</p>
<p>Second paragraph.</p>
<p>Third paragraph.</p>
s
<p>Fourth paragraph.</p>
<p>Fifth paragraph.</p>
a
b
c
d
e
<style>
p {
margin: 0;
}
p + p {
margin-top: 0; /* This removes the top margin of the second and subsequent paragraphs */
}
</style>
- Of particular note is the behaviour of
a b c d e
lines
The result looks like this;
First paragraph.
Second paragraph.
Third paragraph.
s
Fourth paragraph.
Fifth paragraph.
a b
c
d
e
Can anyone tell me how to move the <style></style>
section into a tiddler, with the tag stylesheet and defining a class?, that I can then add the class name to the tiddlers class field, to have this applied only to the current tiddler?
- Unfortunately I have a gap in my knowledge about CSS to do this.
A Subsequent Question would be what if you now want to force a blank line in a particular place, how do you do it?
Thanks in advance
Tony