Home › Forums › CSS › Inline Behavior of an Element › Reply To: Inline Behavior of an Element
March 9, 2015 at 6:35 am
#197685
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);
}