css grid
.item-a {
grid-area: header;
}
.item-b {
grid-area: main;
}
.item-c {
grid-area: sidebar;
}
.item-d {
grid-area: footer;
}
.container {
display: grid;
grid-template-columns: 50px 50px 50px 50px;
grid-template-rows: auto;
grid-template-areas:
"header header header header"
"main main . sidebar"
"footer footer footer footer";
}
/* Answer to: "css display grid" */
/*
The CSS Grid Layout Module offers a grid-based layout system,
with rows and columns, making it easier to design web pages
without having to use floats and positioning.
An HTML element becomes a grid container when its display property
is set to grid or inline-grid.
For more information, go to:
https://www.w3schools.com/css/css_grid.asp
*/
.grid-container {
display: grid;
}
/* or */
.grid-container {
display: inline-grid;
}