>
> I also see some syntax like:
> {{cols2{
>
> {{col{
> test1
> }}}
>
> {{col{
> test2
> }}}
> }}}
>
> But must require some sort of plugin
Below is a response from wolfgang to my request for help in getting
text into two columns. I've been using it ever since without problem.
It requires no plugin. Just put the code into your StyleSheet and then
use the suggested syntax to format your tiddler. Perhaps it will work
with tables, too. I had to fiddle around to figure out how get the
syntax in the tiddlers to work. If need help with that, ask.
On Dec 5, 2008, at 11:04 AM, wolfgang wrote:
> Hi Eric,
>
>> -- if I could create a one-row table with two or three
>> columns each a set width and depth regardless of the amount of text
>> entered into them. Maybe this is possible?
>>
>
> You can place the following into your StyleSheet:
>
> /* 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;}
>
> After which you can use the following syntax in a tiddler:
>
> {{cola{Contact information:}}}{{colb{Additional notes ...}}}{{clear
> {}}}
>
> An other example of this use of columns you can see in edit mode of
> this tiddler:
>
> http://change.tiddlyspot.com/#MptwThemes
>
> Regards,
>
> W.
----------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eew...@bellsouth.net
> Works pretty good, but one issue is that if you put multiple lines of
> text in a column, all the lines of text get concatenated together.
> Meaning you can't have blank lines or multiple paragraphs in a single
> column. Any work around one could put in a stylesheet? I tried
> using <br><br> in the text, but had no effect.
wolfgang's solution, which I just posted, doesn't have this problem.
Blank lines and multiple paragraphs are OK.
> Here's my test tiddler data and actual display:
> {{cols2{
>
> {{col{
> Test data in column 1
>
> test paragraph
>
> }}}
>
> {{col{
> Test data in column 2
> }}}
>
> }}}
Try this instead:
{{cola{Test data in column 1
test paragraph}}}{{colb{Test data in column 2}}}
{{clear{
}}}
If you put the code suggested for the StyleSheet in the StyleSheet, it
should give you two columns with the first line of the second on the
same line as the first line of the first.
Regards,
> Not sure what your trying to say, but here's a simple example:
What I'm saying is do what I suggest.
Put this in your StyleSheet:
>> /* 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;}
>
Then put this in a tiddler:
{{cola{Test data in column 1
test paragraph}}}{{colb{Test data in column 2}}}
{{clear{
}}}
It *will* give you two columns both starting on the same line.
I don't know what I'm talking about. What I know is that the above
works. It was given to me by wolfgang. I did what he said.
> Not sure what your trying to say, but here's a simple example:
>
> {{cols2{
>
> {{col{
> col1_line1
>
> col1_line2
> }}}
> {{col{
> col2_line1
> }}}
>
> }}}
Not sure you're trying to do what I suggested. If so, the above isn't
it. The equivalent for the above translated into what was suggest is:
{{cola{"col1_lin1
col1_line 2}}}{{colb{col2_line1}}}
{{clear{
}}}
The above will give you two columns with two lines separated by a
blank line in the first column.
> What is the {{clear{ used for?
If you don't have it the contents will spill out of the bottom of the
tiddler.
> Your code works for both text and tables . . .
God, it's not *my* code! I'm incapable of composing a line of code.
It was given to me by wolfgang. I suspect it was given to him by
someone else, since he, too, protested that he couldn't compose a line
of code. [Though I was never able to quite believe him.]
Curious. Had you put the four lines of code in your StyleSheet before
it started working?