How to set height property for span with CSS?

Spread the love

To set height property for span with CSS, we set the display and height properties.

For instance, we write

.title {
  display: inline-block;
  height: 25px;
}

to set display to inline-block so the height style will take effect.

Leave a Reply

Your email address will not be published.