diff --git a/script.js b/script.js index 78c21ac..abac17f 100644 --- a/script.js +++ b/script.js @@ -11,6 +11,6 @@ grid.classList.add("grid"); grid.style.width = gridWidth + '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)); } diff --git a/style.css b/style.css index 746927d..786b8b7 100644 --- a/style.css +++ b/style.css @@ -10,12 +10,13 @@ body{ } .container{ border: 1px solid #eee; - height: 500px; - width: 500px; + height: 600px; + width: 600px; display: flex; flex-wrap: wrap; } .grid { border: 1px solid #eee; + box-sizing: border-box; } \ No newline at end of file