Any CSS HORIZONTAL layouts yet for TW?

131 views
Skip to first unread message

@TiddlyTweeter

unread,
Jun 15, 2017, 4:02:11 PM6/15/17
to TiddlyWiki
Rather than go with the vertical newspaper metaphor of a column, I wonder if anyone has a horizontal Story River.

It could be good for presenting some kinds of Tiddlers. Particularly good for graphics.

Anyone had a shot at it yet?

Best wishes
Josiah


 

codacoder...@outlook.com

unread,
Jun 16, 2017, 11:21:44 AM6/16/17
to tiddl...@googlegroups.com
Yes, I've sort-of done it.

In my case, certain tiddlers format the tiddler body as a set of css columns with fixed height(s).  Those tiddlers then scroll horizontally.

So, not a "storyriver", but certainly a horizontal presentation of the content with no vertical scroll at all.

.tc-tagged-bk-layout .tc-tiddler-body {
  max
-height:770px;
  overflow
-x:auto;
  width
: 100%;
  position
: relative;
 
  columns
:3; -moz-columns:3; -webkit-columns:3;
  column
-gap:3em; -moz-column-gap:3em; -webkit-column-gap:3em;
  column
-rule: 3px dotted #ddd; -moz-column-rule: 3px dotted #ddd; -webkit-column-rule: 3px dotted #ddd;
}

@TiddlyTweeter

unread,
Jun 17, 2017, 5:38:20 PM6/17/17
to TiddlyWiki
It may help with this layout issue I have... ???



Each of those is a Tiddler. I really need to better understand modern CSS flows.

Josiah
Auto Generated Inline Image 1

codacoder...@outlook.com

unread,
Jun 17, 2017, 6:04:52 PM6/17/17
to TiddlyWiki
Hi Joshua

No, doubtful.

That sample looks as though you want/need a CSS-grid layout. Or maybe CSS flex (steeper learning curve). Or you could use CSS display:table et al. Worst case (not recommended) HTML tables.

All my code is doing is using CSS columns on suitably tagged tiddlers. When one of those tiddlers is displayed, its content is "split" into columns of the specified width/height. It does NOT display multiple tiddlers in some kind of host tiddler (ie not a transclusion mechanism).

HTH

@TiddlyTweeter

unread,
Jun 17, 2017, 6:22:25 PM6/17/17
to TiddlyWiki
I think you are right. But also I should also play with whether I could transclude them? I sorta think it might be easier that way?

J.

codacoder...@outlook.com wrote:
 
That sample looks as though you want/need a CSS-grid layout. Or maybe CSS flex (steeper learning curve)...
Reply all
Reply to author
Forward
0 new messages