Here's a kludgey solution. You will probably need someone who understands 
CSS better to come up with a better solution.

First change the template tiddler to:

\define mytable(colorclass)
<div class="specialTable">
<table class="persontable ">
<tr><th colspan=2 style="background-color:$colorclass$;"> @@display:block;
color:lightgrey; <<currentTiddler>> @@ </th></tr>
<tr><td> ''Value 1''  </td><td>@@display:block;width:15em;{{!!value1}}@@</td
></tr>
<tr><td>@@display:block;width:6.5em;''Value 2''@@ 
</td><td>@@display:block;width:15em;stuff@@ 
</td></tr>
<tr><td>@@display:block;width:6.5em;''Value 3''@@ 
</td><td>@@display:block;width:15em;@@ 
</td></tr>
</table>
</div>
<div style="clear:both">
</div>
\end
<$macrocall $name="mytable" colorclass={{!!tablecolor}}/>

This wraps the table in a div identified by class specialTable and adds a 
bit on the end to clear divs.

Then add this to the stylesheet:

.specialTable {
float: right;
}

[data-tags*=myTable] .tc-tiddler-body
{
width:40% ;
float: left;
}

This makes your text float left and your table float right. It also limits 
your text width to 40% of the entire space -- which works on my system but 
may be too little or too much on yours. This is where someone who 
understands CSS is needed. Without the 40% the text will expand to fill up 
the entire area, which will push the div down. So what's needed is some 
configuration that will use whatever space is available AFTER the table has 
taken it's bit.

Good luck!
-- Mark



On Tuesday, November 13, 2018 at 4:29:10 AM UTC-8, Rafael Aprato wrote:
>
> I'm sorry to resurrect an old thread; but I noticed a rather important 
> issue only after I had started applying the new tables to my TW.
>
> Even when I use your json, the table doesn't stick to the top anymore...It 
> works as if the table was inline with the text; the more I write, the more 
> it goes down. That means I can't give it that "Wikipedia look" anymore, 
> since it doesn't allow me to write to the left of the table (having the 
> table fixed to the top-right).
>
> Any ideas? Tried searching around for solutions in W3 and such sites, but 
> the CSS float property only allows 'left' and 'right'.
>
> But it worked before when the table was manually inserted (no tags), so I 
> wonder if there's a solution.
>
> Best regards,
>
> Rafael
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2ae74d06-d3f5-44c3-8765-39a5dac8aa3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to