I need help with a styling issue involving multiple spans enclosed in a center tag. I want each span to enlarge when hovered over by a user, but the problem is that when I increase the size of one span, it pushes aside all the other elements and disrupts the layout:
.square:hover {
background-color: yellow;
width: 50px; // originally 25px
height: 50px;// originally 25px
}
Is there a way to ensure that the span enlarges without affecting its neighboring elements?