I am at the very beginning of understanding TiddlyWiki and now there are these new procedures. So I decided to re-write very easy macros to procedures for the learning-process. Some went well. This one didn’t.
This macro creates vertical whitespace. You choose how high it should be.
\define vspace(height:"42px")
<p style="margin-bottom: $height$;"></p>
\end
This procedure creates only the fixed whitespace. It does not use the entered height. I tried many versions of { " $ ( <
in different numbers nd combinations.
\procedure vspace(height:"42px")
<p style="margin-bottom: <<height>>;"></p>
\end
Your inspiration taught me that looking into TiddlyWiki should include looking into CSS.
I got a working procedure but it feels like a little detour…
\procedure vspace(height:"42px")
<style>
.vspace {margin-bottom: <<height>>;}
</style>
<p class="vspace"></p>
\end
Can the variable be passed diretly to the html-tag/element like to the CSS?