Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:CSSGrid

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

Overview

Non-usage (development-only) example:

{{CSSGrid|style=max-width:600px;|template-columns=1fr 1fr 1fr|
{{GridItem|One}}
{{GridItem|Two}}
{{GridItem|Three}}
{{GridItem|Four}}
{{GridItem|Five}}
{{GridItem|Six}}
}}

Result:

One
Two
Three
Four
Five
Six

Example(s)

See Also

A 2D CSS Grid wrapper to wrap all other grid element templates. Used since flexbox is a 1-dimensional layout (either row, or column but not both), where CSS Grid is 2-dimensional. Used with the {GridItem} template.

Template parameters

ParameterDescriptionTypeStatus
(content) 11 content

Enter the content that should appear in the grid, either other templates or grid items.

Stringrequired
(grid-) templatetemplate

Specify values for the "grid-template" CSS property (if desired). No semi-colon needed.

Stringoptional
(grid-) template-columnstemplate-columns

Specify values for the "grid-template-colums" CSS property (if desired). No semi-colon needed.

Example
repeat (3, 1fr)
Stringoptional
(grid-) template-rowstemplate-rows

Specify values for the "grid-template-rows" CSS property (if desired). No semi-colon needed.

Stringoptional
(grid-) template-areastemplate-areas

Specify values for the "grid-template-areas" CSS property (if desired). No semi-colon needed.

Stringoptional
gridgrid

Specify values for the "grid" CSS property (if desired). No semi-colon needed. This property is shorthand for (grid-) "rows", "columns", "auto-rows", "auto-columns", and "auto-flow" properties (to set all in one statement).

Stringoptional
(grid-) auto-columnsauto-columns

Specify values for the "grid-auto-columns" CSS property (if desired). No semi-colon needed.

Stringoptional
(grid-) auto-rowsauto-rows

Specify values for the "grid-auto-rows" CSS property (if desired). No semi-colon needed.

Stringoptional
(grid-) auto-flowauto-flow

Specify values for the "grid-auto-flow" CSS property (if desired). No semi-colon needed.

Stringoptional
gapgap

Specify values for the "gap" CSS property (if desired). No semi-colon needed. This property is shorthand for "row-gap", and "column-gap" set in one property.

Stringoptional
column-gapcolumn-gap

Specify values for the "column-gap" CSS property (if desired). No semi-colon needed.

Stringoptional
row-gaprow-gap

Specify values for the "row-gap" CSS property (if desired). No semi-colon needed.

Stringoptional
(CSS) classclass

If desired, specify CSS class names to add additional classes, separate classes with a space.

Example
MyClass
Stringoptional
(CSS) stylestyle

If desired, specify valid css styles separated by a semi-colon and a spaces.

Example
background:pink; color:red;
Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.