Jeremy Ruston wrote:
>
> It may be worth trying to use CSS float: left to position the prefix?
>

...and he'd have to move the transclusion to the right also, I'd think.
This, and Reeces other similar "block issues" caused from transclusion 
blockmode, are interesting. Maybe the transclusionwidget should have a 
class attribute?


Reece, here's an alternative solution that might work IF you prefix is a 
string that fulfills common css definition name rules.

\define pff-display-xblock(field:"" class:"")
<$list filter='[is[current]has[$field$]]'>
<div class="myclass $class$">
<$transclude field="$field$" mode="block" /></div>
</$list>
\end

<<pff-display-xblock "caption" "xxx">>

<style>
.myclass { margin-left:2em;}
.xxx::before {content:"xxx"; position:absolute; margin-left:-2em}
</style>

The prefix you use in the macrocall (i.e "xxx") has a corresponding 
styledefinition (i.e ".xxx").

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/173911ac-375d-46a3-adad-9e69f39d1eb3%40googlegroups.com.

Reply via email to