Template:Flexbox-header: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Corveroth
No edit summary
>Yandere-sliver
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; justify-content: space-between;"><noinclude>Flexbox is a template for arranging items on a page in neatly spaced horizontal or vertical grids. This is convenience wrapper for the underlying CSS technology of the same name.
<noinclude>Flexbox is a template for arranging items on a page in neatly spaced horizontal or vertical grids. This is convenience wrapper for the underlying CSS technology of the same name.


Flexbox is intended for use with [[Template:Flexitem]], but it should work with any HTML element with the correct CSS properties set.
Flexbox is intended for use with [[Template:Flexbox-item-header]], but it should work with any HTML element with the correct CSS properties set.


It '''must''' be closed with either [[Template:Flexbox-footer]], or a <code><nowiki></div></nowiki></code>.
It '''must''' be closed with either [[Template:Flexbox-footer]], or a <code><nowiki></div></nowiki></code>. The same is true for each <code>flexbox-item-header</code>.
== See also ==
== See also ==
[https://css-tricks.com/snippets/css/a-guide-to-flexbox/ A Guide to CSS Flexbox][[Category:Main page components]]</noinclude>
[https://css-tricks.com/snippets/css/a-guide-to-flexbox/ A Guide to CSS Flexbox][[Category:Main page components]]</noinclude><div class="flex" style="display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; justify-content: {{{justify|flex-start}}}; {{#if:{{{noflexwrap|}}}||flex-wrap: {{{wrap|wrap}}};}}">

Latest revision as of 14:51, 30 July 2020

Flexbox is a template for arranging items on a page in neatly spaced horizontal or vertical grids. This is convenience wrapper for the underlying CSS technology of the same name.

Flexbox is intended for use with Template:Flexbox-item-header, but it should work with any HTML element with the correct CSS properties set.

It must be closed with either Template:Flexbox-footer, or a </div>. The same is true for each flexbox-item-header.

See also

A Guide to CSS Flexbox