Description Usage Arguments Details Value Note See Also Examples
Create a panel with a CSS grid layout
1 2 3 4 5 6 7 8 9 10 |
... |
Elements to include within the panel |
areas |
A list of named areas. Each element should contain the names, per row, of each area of the grid. Expected values follow the convension for the grid-template-areas css attribute. |
rows |
A string of css valid sizes separated by a space. Follows the convension for the grid-template-rows css attribute. If not provided the existing space will be split equally acording to the areas defined in areas. |
columns |
A string of css valid sizes separated by a space. Follows the convension for the grid-template-columns css attribute. If not provided the existing space will be split equally acording to the areas defined in areas. |
id |
The html id of the panel container. |
class |
Custom classes to be added to the panel container. |
style |
Custom css style attributes to be added to the panel container. |
Behaves similar to normal HTML div tags, but simplifies the way css grid can be used via the arguments area, rows and columns. Only areas is required, when not used rows and columns will simply split the existing space equaly between each row / column. Internally the function creates the styles for the grid positions by generating the rules for positioning the children via their classes. To position a child element simply make sure that it includes a class with the same name as the named area.
An HTML tagList.
See https://css-tricks.com/snippets/css/complete-guide-grid/ for additional details on using css grids
[gridPage()]
Other grid functions:
flexPanel()
,
gridPage()
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.