I have a grid with numbers. I want to highlight the chosen number by drawing a circle around it but the number isn't exactly in the middle of the circle. I have a feeling that the grid is somehow pushing the circle. I tried all the answers from similar questions but nothing worked. I managed to put it into jsfiddle:
<span class="number-grid">
<span class="number">1.</span>
<span class="number">2.</span>
<span class="number-highlighted">3.</span>
<span class="number">4.</span>
<span class="number">5.</span>
<span class="number">6.</span>
<span class="number">7.</span>
<span class="number">8.</span>
<span class="number">9.</span>
<span class="number">10.</span>
</span>
.number-grid {
display: grid;
grid-template-columns: 20% 20% 20% 20% 20%;
grid-row-gap: 16px;
justify-items: center;
align-items: center;
margin-bottom: 8px;
margin-top: 8px;
}
.number {
text-align: center;
font-weight: bold;
cursor: pointer;
}
.number-highlighted {
color: #FFFFFF;
background: #0c6fa3;
border-radius: 50%;
width: 27px;
height: 27px;
}