css span width according to text code example Example: span size css span.product__specfield_8_arrow { display: inline-block; /* or block */ }