I'm implementing crossword puzzle using css grid
blank cells have no color. and other cells have black border.
the problem is that borders are collabsing over each other.
I've already opened this question and this question. but the proble here is that not all cells have this double border.
here is the code
.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>