Skip to content

Instantly share code, notes, and snippets.

@caitfriedlander
Created May 22, 2018 22:40
Show Gist options
  • Save caitfriedlander/00a22156c2739278de5a741ef9266eaa to your computer and use it in GitHub Desktop.
Save caitfriedlander/00a22156c2739278de5a741ef9266eaa to your computer and use it in GitHub Desktop.
Box Model // source http://jsbin.com/zizuqor
<!DOCTYPE html>
<html>
<head>
<title>Box Model</title>
<link rel="stylesheet" href="style.css">
<style id="jsbin-css">
body {
background-color: #333333;
}
div {
background-color: #c0dec5;
margin: 64px;
padding: 32px 48px 0px 48px;
}
span {
font-variant: small-caps;
font-family: "Tahoma, sans-serif";
letter-spacing: .25em;
padding: 0 3px;
background-color: rgba(100,150,150,.5);
}
p {
font-family: Georgia, serif;
font-size: 20px;
line-height: 1.4em;
}
.source {
justify: right;
}
</style>
</head>
<body>
<div>
<p>Build a good <span>name</span>. Keep your <span>name</span> clean. Be concerned about doing good work. Protect your work, and if you build a good <span>name</span>, eventually that <span>name</span> will be its own currency.</p>
<p class="source">— William S. Burroughs’s advice to Patti Smith</p>
</div>
<script id="jsbin-source-css" type="text/css">body {
background-color: #333333;
}
div {
background-color: #c0dec5;
margin: 64px;
padding: 32px 48px 0px 48px;
}
span {
font-variant: small-caps;
font-family: "Tahoma, sans-serif";
letter-spacing: .25em;
padding: 0 3px;
background-color: rgba(100,150,150,.5);
}
p {
font-family: Georgia, serif;
font-size: 20px;
line-height: 1.4em;
}
.source {
justify: right;
}</script>
</body>
</html>
body {
background-color: #333333;
}
div {
background-color: #c0dec5;
margin: 64px;
padding: 32px 48px 0px 48px;
}
span {
font-variant: small-caps;
font-family: "Tahoma, sans-serif";
letter-spacing: .25em;
padding: 0 3px;
background-color: rgba(100,150,150,.5);
}
p {
font-family: Georgia, serif;
font-size: 20px;
line-height: 1.4em;
}
.source {
justify: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment