Template:Div flex row end
Usage
{{Div flex row}} provides a simple way to create a horizontal alignment for related page elements (producing multiple rows if the screen is too narrow). A closing {{Div flex row end}} is required after the final item being aligned.
Free text content needs to be encased in div tags in order to create the rows and columns. If this is required, the |div o=y parameter, inserting an opening div tag, may be used in conjunction with the {{Div CO}} template, inserting a closing and opening div tag:
Source
{{Div flex row |div o=y}}
Some content.
{{Div CO}}
Some more content.
{{Div CO}}
A third thing.
{{Div flex row end|div c=y}}
Result
Some content.
Some more content.
A third thing.
Examples
Three tables next to each other
{{Div flex row}}
<!--STANDARD TABLE MARKUP-->
{| class="wikitable"
|+ First table
|-
! Header text !! Header text !! Header text
|-
| Example || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
{| class="wikitable"
|+ Second table
...
|-
| Example || Example || Example
|}
{{Div flex row end}}
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | Example |
| Example | Example | Example |
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | Example |
| Example | Example | Example |
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | Example |
| Example | Example | Example |
A table next to a related map.
{{Div flex row|align-items=center}}
<!--STANDARD TABLE MARKUP-->
{| class="wikitable"
|+ Launch rollout timeline
! scope="col" | Launch date
! scope="col" | Country / Territory
|-
| rowspan="20" scope="row" | 13 February
| {{Flagu|Australia}}
|-
| {{Flagu|Austria}}
|-
| {{Flagu|Belgium}}
...
| {{Flagu|South Korea}}
|-
| {{Flagu|Tunisia}}
|}
{{Div flex row end}}
| Launch date | Country / Territory |
|---|---|
| 13 February | |
| 20 April | |
A template to help create horizontal groupings of related content.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Wrap | wrap | A pass-through for the CSS "flex-wrap" property.
| String | optional |
| Align items | align-items | A pass-through for the CSS "align-items" property.
| String | optional |
| Justify content | justify-content | A pass-through for the CSS "justify-content" property.
| String | optional |
| Opening div | div o | An opening div tag for the first block of content. Some content (such as free text) requires this to create the blocks used for the columns and rows.
| Boolean | optional |
| Gap | gap | The flexbox gap parameter, which specifies a minimum spacing between items; a CSS length value. Units of "em" are recommended.
| String | optional |
See also
- {{Gallery layout}} – similar template
- {{Gallery items}} – similar template
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.