what does line-height do in css code example
Example 1: 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 2: css line spacing
line-height: 1.5;
line-height: 1.5em;
line-height: 150%;
line-height: 24px;
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;
}