7

This is jsfiddle. I want to remove empty space in top and bottom in my text. I tried to use line-height, but its not what I need. How I can do it? Thanks.

span {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Roboto';
}

enter image description here

Hashem Qolami
  • 97,268
  • 26
  • 150
  • 164
ivan
  • 85
  • 1
  • 4

1 Answers1

3

This is not ideal, however you could play with height and line-height to achieve that:

@import url(http://fonts.googleapis.com/css?family=Roboto:300,400,500,700);
span {
    font-size: 50px;
    font-weight: 600;
    font-family: 'Roboto';

    display: inline-block;
    vertical-align: top;
    height: .75em;
    line-height: .75em;

    background-color: gold;
}
<span>Some Text</span>
Hashem Qolami
  • 97,268
  • 26
  • 150
  • 164