Floating tables

4 views
Skip to first unread message

Michael F

unread,
Jul 16, 2008, 5:14:11 PM7/16/08
to TiddlyWiki
Forgive me if this is a stupid question - I have no idea of the
limitations or abilities of CSS - but I would like to have a floating
table, with the text wrapped around it. Do you think this is possible?
I found an earlier discussion that showed how to create a centre-
aligned table (http://groups.google.com/group/TiddlyWiki/browse_thread/
thread/50be1d732d85257c/a24801e3bec12ef7?lnk=gst&q=align+table
+&rnum=6#a24801e3bec12ef7) but this doesn't quite do what I need - I'd
like the text to work in the same way as it does if you use a right-
floating or left-floating image.

Any ideas?
Michael.

wolfgang

unread,
Jul 16, 2008, 5:27:02 PM7/16/08
to TiddlyWiki
Hi Michael,

I know only of this solution (suggested by Saq). Place the following
in your StyleSheet tiddler:

/* custom styles for parallel columns. Classes cola and colb */
.cola {width:45%; float:left; margin-left:0.5em;}
.colb {width:45%; float:left; margin-left:1.5em;}
.clear {clear:both;}

And then add the tables to a tiddler in the following fashion:

{{cola{
|a|b|
|c|d|
}}}{{colb{
|a|b|
|c|d|
}}}{{clear{}}}

Regards,

W.

Michael F

unread,
Jul 16, 2008, 5:48:32 PM7/16/08
to TiddlyWiki
Wolfgang,

Wow, what a quick response - I've been struggling with that for days!
That's perfect, and the fact that it's not table specific (I've just
been experimenting using this with images too) makes it doubly useful.
Very many thanks!

M.
Reply all
Reply to author
Forward
0 new messages