<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.bluegoldwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlex_columns%2Fdoc</id>
	<title>Template:Flex columns/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.bluegoldwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlex_columns%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.bluegoldwiki.com/index.php?title=Template:Flex_columns/doc&amp;action=history"/>
	<updated>2026-05-01T17:14:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://www.bluegoldwiki.com/index.php?title=Template:Flex_columns/doc&amp;diff=2247&amp;oldid=prev</id>
		<title>Bigblue: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.bluegoldwiki.com/index.php?title=Template:Flex_columns/doc&amp;diff=2247&amp;oldid=prev"/>
		<updated>2020-04-26T05:11:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high-use| 4800 }}&lt;br /&gt;
{{Uses Lua|Module:Flex columns}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Flex columns/styles.css}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
This sort of layout requires browsers to support [[CSS flex-box layout|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).&lt;br /&gt;
&lt;br /&gt;
For narrow screens, e.g. mobile devices, the display reverts to a single column.&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Flex columns&lt;br /&gt;
|1 = (...first column contents...)&lt;br /&gt;
|2 = (...second column contents...)&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
Only contents which are in {{tag|div}} tags will have extra whitespace distributed to them – except for those with class &amp;lt;code&amp;gt;flex-columns-noflex&amp;lt;/code&amp;gt; (or otherwise override the &amp;lt;code&amp;gt;flex:&amp;lt;/code&amp;gt; property)&lt;br /&gt;
&lt;br /&gt;
To change the column balance, {{para|flex1}} and/or {{para|flex2}} can be set. The default for each is &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|flex1=3 |flex2=2&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will result in the first column taking up to 60% (3/5) of the available width, and the second column taking up at least 40% (2/5) of the width.&lt;br /&gt;
Note that the actual column balance will vary depending on screen size, since the minimum width of each column is set at 360px.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Portal templates navbox}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bigblue</name></author>
	</entry>
</feed>