Fix grid
This commit is contained in:
parent
85ef7a2709
commit
a48661fcf4
2 changed files with 4 additions and 3 deletions
|
|
@ -11,6 +11,6 @@ grid.classList.add("grid");
|
||||||
grid.style.width = gridWidth + 'px';
|
grid.style.width = gridWidth + 'px';
|
||||||
grid.style.height = gridHeight + 'px';
|
grid.style.height = gridHeight + 'px';
|
||||||
|
|
||||||
for (let i = 0; i < gridArea-1; i++){
|
for (let i = 0; i < gridArea; i++){
|
||||||
container.appendChild(grid.cloneNode(true));
|
container.appendChild(grid.cloneNode(true));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,13 @@ body{
|
||||||
}
|
}
|
||||||
.container{
|
.container{
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
height: 500px;
|
height: 600px;
|
||||||
width: 500px;
|
width: 600px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue