Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Inline Behavior of an Element Reply To: Inline Behavior of an Element

#197685
Paulie_D
Member

Since we know this:

height of the box is given by the ‘line-height’ property.

We can use calc to play with line-height like this

span {
  background: red;
  padding: 25px;
  line-height: calc(1em + 50px);
}

http://codepen.io/Paulie-D/pen/XJPBpP