Skip to content

Instantly share code, notes, and snippets.

@redgeoff
Created March 30, 2017 21:18
Show Gist options
  • Save redgeoff/5027fcb6f99c0abc5facbe25ba1a276d to your computer and use it in GitHub Desktop.
Save redgeoff/5027fcb6f99c0abc5facbe25ba1a276d to your computer and use it in GitHub Desktop.
Bootstrap Simulated Typography
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Simulated Typography</title>
</head>
<body>
<style>
body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.h1, .h2, .h3, .h4, .h5, .h6 {
color: #333333;
}
.h1-small, .h2-small, .h3-small, .h4-small, .h5-small, .h6-small {
color: #777777;
}
.h1 {
font-size: 36px;
font-weight: 500;
margin: 18px 0px 18px 0px;
}
.h2 {
font-size: 30px;
font-weight: 500;
margin: 15px 0px 15px 0px;
}
.h3 {
font-size: 24px;
font-weight: 500;
margin: 12px 0px 12px 0px;
}
.h4 {
font-size: 18px;
font-weight: 500;
margin: 9px 0px 9px 0px;
}
.h5 {
font-size: 14px;
font-weight: 500;
margin: 6px 0px 6px 0px;
}
.h6 {
font-size: 12px;
font-weight: 500;
margin: 3px 0px 3px 0px;
}
.h1-small {
font-size: 24px;
font-weight: 400;
margin: 18px 0px 18px 0px;
}
.h2-small {
font-size: 20px;
font-weight: 400;
margin: 15px 0px 15px 0px;
}
.h3-small {
font-size: 16px;
font-weight: 400;
margin: 12px 0px 12px 0px;
}
.h4-small {
font-size: 14px;
font-weight: 400;
margin: 9px 0px 9px 0px;
}
.h5-small {
font-size: 12px;
font-weight: 400;
margin: 6px 0px 6px 0px;
}
.h6-small {
font-size: 10px;
font-weight: 400;
margin: 3px 0px 3px 0px;
}
body {
margin: 0px;
}
</style>
<div class="h1">h1. Bootstrap heading <span class="h1-small">Secondary text</span></div>
<div class="h2">h2. Bootstrap heading <span class="h2-small">Secondary text</span></div>
<div class="h3">h3. Bootstrap heading <span class="h3-small">Secondary text</span></div>
<div class="h4">h4. Bootstrap heading <span class="h4-small">Secondary text</span></div>
<div class="h5">h5. Bootstrap heading <span class="h5-small">Secondary text</span></div>
<div class="h6">h6. Bootstrap heading <span class="h6-small">Secondary text</span></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment