Example of a correct CSS baseline in ems
HTML
<h1>Heading Level One</h1>
<h2>Heading Level Two</h2>
<h3>Heading Level Three</h3>
<h4>Heading Level Four</h4>
<h5>Heading Level Five</h5>
<h6>Heading Level Six</h6>
<p>This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph. This is a test paragraph.</p>
CSS
html {
background-image: -webkit-linear-gradient(hsla(0,0%,0%,0) 95%, hsla(0,25%,50%,.5) 95%);
background-image: -moz-linear-gradient(hsla(0,0%,0%,0) 95%, hsla(0,25%,50%,.5) 95%);
background-image: -ms-linear-gradient(hsla(0,0%,0%,0) 95%, hsla(0,25%,50%,.5) 95%);
background-image: -o-linear-gradient(hsla(0,0%,0%,0) 95%, hsla(0,25%,50%,.5) 95%);
background-image: linear-gradient(hsla(0,0%,0%,0) 95%, hsla(0,25%,50%,.5) 95%);
background-position: 50% 0;
background-size: 1.5em 1.5em;
margin: 0;
padding: 1.5em 3em;
}
body {
margin: 0;
}
/* Typographic Baseline */
html {
color: #333;
font-family: sans-serif;
font-size: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
margin: 0;
}
h1 {
font-size: 3em;
line-height: 1;
margin-bottom: .5em;
}
h2 {
font-size: 2.25em;
line-height: 1.333333333;
margin-bottom: 0.666666666em;
}
h3 {
font-size: 1.5em;
line-height: 1;
margin-bottom: 1em;
}
h4 {
font-size: 1.3125em;
line-height: 1.142857142;
margin-bottom: 1.142857142em;
}
h5 {
font-size: 1.125em;
line-height: 1.333333333;
margin-bottom: 1.333333333em;
}
h6 {
font-size: 1em;
line-height: 1.5;
margin-bottom: 1.5em;
}
p {
font-size: 1em;
margin-bottom: 1.5em;
line-height: 1.5;
}