I'm working on a crossword puzzle design using css grid
The blank cells have no color, while the other cells have a black border.
The issue I'm facing is that the borders are overlapping.
I've referred to similar questions on Stack Overflow like this one and this one, but the problem here is not all cells have this double border.
Here's the code snippet:
.crossword-board-container {
position: relative;
background: #fff;
}
.crossword-board {
background: transparent;
display: grid;
grid-template: repeat(5, 4em) / repeat(5, 4em);
list-style-type: none;
padding: 0;
margin: 0 auto;
}
.crossword-board__item {
border: 1px solid #000;
background: transparent;
text-align: center;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
}
<div class="crossword-board-container">
<div class="crossword-board">
<!-- ROW 1 -->
<span></span>
<span></span>
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<span></span>
<span></span>
<span></span>
<span></span>
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" /> <input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<span></span>
<span></span>
<span></span>
<span></span>
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<span></span>
<span></span>
<span></span>
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<input type="text" minlength="1" maxlength="1" pattern="^[bB]{1}$" />
<span></span>
</div>
</div>