-1
span ė an element of the type inline.
Elements inline has the size defined by its content, even if you assign a size manually.
Many attributes of CSS shall apply only under the right conditions.
To give a size to the span, give him the property display: inline-block.

I think that’s not the problem, because I tried the same thing using a div and the result was the same.
– Jorge Luiz