created: 20161209172820513 modified: 20161220162845058 tags: Learning title: Formatting List Results as Tables with CSS - Variable Column Method type: text/vnd.tiddlywiki Sometimes you want the results of a ``<$list>`` widget to be formatted in the form of multiple columns, instead of just one straight listing. This method uses CSS to set up listing as columns. It is responsive, that is, re-positioning to display fewer columns if the window is too small. You don't directly specify a fixed number of columns but instead specify the max-width for the list (which could be a transclusion of the tiddler width) and the width for each item. It lists from left to right, then wraps to a new row. For other table-making techniques see also: * [[Formatting List Results as Tables with CSS - Specified Columns Methods]] * [[Formatting List Results as Tables (no CSS)]] !! Example listing using 50 existing ~TiddlyWiki tags ```
<$list filter="[has[tags]tags[]sort[title]first[50]]"> <$transclude tiddler="$:/core/ui/TagTemplate"/>
``` !! Example stylesheet to use with listing ``` ``` !! Results
<$list filter="[has[tags]tags[]sort[title]first[50]]"> <$transclude tiddler="$:/core/ui/TagTemplate"/>