Template:Flex columns/doc
< Template:Flex columns
Jump to navigation
Jump to search
Revision as of 03:36, 26 July 2018 by imported>Evad37 (→Usage: flex-columns-noflex)
| This is a documentation subpage for Template:Flex columns. It contains usage information, categories and other content that is not part of the original template page. |
This page is currently in creation It is a new Wikipedia article developing through collaboration and successive edits.To help avoid edit conflicts and other confusion, the creator asks that for a short time this page not be edited unnecessarily, or nominated for deletion during this early stage of development.
|
Template:Uses Lua Script error: No such module "Uses TemplateStyles". This template creates a column layout, where contents within the columns will have the same height, with any extra whitespace distributed throughout the shorter columns contents. It is mainly intended for use in portals.
This sort of layout requires browsers to support CSS flexbox. For those that don't there is a fallback that will show a two column view, but without the heights being the same (a layout many portals used as at July 2018).
Usage
{{Flex columns
|1 = (...first column contents...)
|2 = (...second column contents...)
}}
Only contents which are in <div>...</div> tags will have extra whitespace distributed to them – except for those with class flex-columns-noflex (or otherwise override the flex: property)