css line height and space between lines code example
Example 1: line spacing css
line-height: 20px;
line-height: 1.7em;
Example 2: line-height css
line-height: normal;
line-height: 3.5;
line-height: 3em;
line-height: 34%;
line-height: inherit;
line-height: initial;
line-height: unset;
Example 3: line-height css
.green {
line-height: 1.1;
border: solid limegreen;
}
.red {
line-height: 1.1em;
border: solid red;
}
h1 {
font-size: 30px;
}
.box {
width: 18em;
display: inline-block;
vertical-align: top;
font-size: 15px;
}