I want to make N input boxes placed to create an NxN input area square. I tried it using <br>
after each N square placed. But this was not resulted as I want. Because there are spaces between squares and that's something I don't want. Also using <br>
isn't a good way to do this, I think. Is there another way to make this thing succesfully?
My codes to create a 3x3 square:
.box {
margin-right: 0px;
width: 30px;
height: 30px;
box-sizing: border-box;
}
<div>
<input class="box" type="text">
<input class="box" type="text">
<input class="box" type="text">
<br>
<input class="box" type="text">
<input class="box" type="text">
<input class="box" type="text">
<br>
<input class="box" type="text">
<input class="box" type="text">
<input class="box" type="text">
</div>