How to set height property for SPAN

Give it a display:inline-block in CSS – that should let it do what you want.
In terms of compatibility: IE6/7 will work with this, as quirks mode suggests:

IE 6/7 accepts the value only on elements with a natural display: inline.

Leave a Comment