repeat(/*Number of repeats*/, /*Code to be repeated*/)
.gridContainer {
grid-template-columns: repeat(4, 100px); /*Creates 4 columns, each 100px in width*/
grid-template-rows: repeat(2, 250px); /*Creates 2 rows, each 250px in height*/
}
#container {
display: grid;
grid-template-columns: repeat(2,1fr) 100px;
grid-gap: 5px;
box-sizing: border-box;
height: 200px;
width: 100%;
background-color: #8cffa0;
padding: 10px;
}
#container > div {
background-color: #8ca0ff;
padding: 5px;
}
repeat(/*Number of repeats*/, /*Code to be repeated*/)
.gridContainer {
grid-template-columns: repeat(4, 100px); /*Creates 4 columns, each 100px in width*/
grid-template-rows: repeat(2, 250px); /*Creates 2 rows, each 250px in height*/
}
#container {
display: grid;
grid-template-columns: repeat(2,1fr) 100px;
grid-gap: 5px;
box-sizing: border-box;
height: 200px;
width: 100%;
background-color: #8cffa0;
padding: 10px;
}
#container > div {
background-color: #8ca0ff;
padding: 5px;
}
Code Example |
---|
Css :: image rotate with css |
Css :: progress bar color change css |
Css :: css text gradient |
Css :: style rule that expands the element to cover any floating content within the element |
Css :: replace icon with image css |
Css :: horizontal scroll with css grid |
Css :: css module multiple classes |
Css :: css lighten function |
Css :: h2 custom font family html css |
Css :: tabla responsive css |
Css :: remove on click border |
Css :: ie11 flex 1 |
Css :: mat dialog background color |
Css :: for sass |
Css :: css filter color |
Css :: inline text and image |
Css :: css pointer event |
Css :: css image size adjust |
Css :: rgba blue colo |
Css :: jest test try catch |
Css :: @import css |
Css :: font-face html |
Css :: how to underline text in css |
Css :: flex justify-content |
Css :: css resize image |
Css :: css tbody full width |
Css :: css border radius |
Css :: make something slowly invisible css |
Css :: center div with flexbox |
Css :: flexbox properties css |