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

 Actions

Template

Template:GridItem

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)

Example(s)

Automatically responsive columns with repeat and auto-fit (shrink browser width to view responsiveness):

{{CSSGrid|template-columns=repeat(auto-fit, minmax(200px, 1fr) )|style=max-width:800px;|
{{GridItem|One}}
{{GridItem|Two}}
{{GridItem|Three}}
{{GridItem|Four}}
{{GridItem|Five - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
{{GridItem|Six}}
}}

Gives:

One
Two
Three
Four
Five - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Six

{{CSSGrid|template-columns=repeat(auto-fit, minmax(200px, 1fr) )|style=max-width:800px;|
{{GridItem|column=span 2|One}}
{{GridItem|Two}}
{{GridItem|Three|row=span 2}}
{{GridItem|Four|row=span 2}}
{{GridItem|Five - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
{{GridItem|Six}}
}}

Gives:

One
Two
Three
Four
Five
Six

See Also

A CSS Grid item (and nested grid wrapper), each item automatically appears in the grid where specified, and may also form a nested grid.

Template parameters

ParameterDescriptionTypeStatus
(content) 11 content

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

Stringrequired
(grid-) areaarea

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

Stringoptional
(grid-) columncolumn

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

Stringoptional
(grid-) column-startcolumn-start

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

Stringoptional
(grid-) column-endcolumn-end

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

Stringoptional
(grid-) rowrow

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

Stringoptional
(grid-) row-startrow-start

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

Stringoptional
(grid-) row-endrow-end

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

Stringoptional
displaydisplay

no description

Stringoptional
(grid-) templatetemplate

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

Stringoptional
template-columnstemplate-columns

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

Unknownoptional
template-rowstemplate-rows

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

Unknownoptional
template-areastemplate-areas

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

Unknownoptional
gridgrid

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

Stringoptional
(grid-) auto-columnsauto-columns

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

Stringoptional
(grid-) auto-rowsauto-rows

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

Stringoptional
(grid-) auto-flowauto-flow

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

Stringoptional
gapgap

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

Stringoptional
column-gapcolumn-gap

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

Stringoptional
row-gaprow-gap

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

Stringoptional
classclass

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

Example
MyClass
Stringoptional
stylestyle

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

Example
background-color: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.