Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created July 21, 2011 18:59
Show Gist options
  • Save kevinburke/1097919 to your computer and use it in GitHub Desktop.
Save kevinburke/1097919 to your computer and use it in GitHub Desktop.
CSS for a markdown file
<!---
Put this at the top of your markdown file.
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body{
margin: 0 auto;
font-family: Georgia, Palatino, serif;
color: #444444;
line-height: 1;
max-width: 960px;
padding: 0 30px 30px;
}
h1, h2, h3, h4 {
color: #111111;
font-weight: 400;
}
h1, h2, h3, h4, h5, p {
margin-bottom: 24px;
padding: 0;
}
h1 {
font-size: 48px;
}
h2 {
font-size: 36px;
margin: 24px 0 6px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 21px;
}
h5 {
font-size: 18px;
}
a {
color: #0099ff;
margin: 0;
padding: 0;
vertical-align: baseline;
}
ul {
padding: 0;
margin: 0;
}
li {
line-height: 24px;
}
p {
font-size: 16px;
line-height: 24px;
max-width: 540px;
}
pre {
padding: 0px 24px;
}
aside {
display: block;
float: right;
width: 390px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment