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';
}
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';
}
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>