Here the CSS trick for fixing those squished headlines on your blog such as the H1 Heading shown in the screenshot below.
The original code in the CSS (cascading style sheet) for that H1 was as follows:
#content h1 {
font-size: 25px;
color:#036;
background: transparent;
font-family: Verdana, ‘Trebuchet MS', Arial, Helvetica, sans-serif;
font-weight: bold;
margin: 0px 0px 5px 0px;
padding: 10px 0px 0px 0px;
}
To increase the height of the line, I added “line-height: 28px;” as shown in bold in the code below. Because the font size is 25px, I simply added 3 pixels to the line height to put some space in between the lines.
#content h1 {
font-size: 25px;
line-height: 28px;
color:#036;
background: transparent;
font-family: Verdana, ‘Trebuchet MS', Arial, Helvetica, sans-serif;
font-weight: bold;
margin: 0px 0px 5px 0px;
padding: 10px 0px 0px 0px;
}
Alternatively, you can set the line height using a number value, e.g. “line-height: 1.2;” The standard line-height is 1, so 1.2 increases the line height. You can also shrink a line height by half as well by using the value 0.5… and so on and so forth.
Here's how the H1 Heading looked when I set the line height to 1.2.
The other alternative is to use a percent value, i.e. 100% is standard line height and 200% would double the size.
OK, now go fix your headlines! 🙂