cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <p class="intro">
  What CSS property do you use to set the colour of a text block? If you said <em>color</em> you were … wrong! 
</p>
<p class="intro">
  Don’t take it too hard, though. It was a trick question. In typographic parlance, “color” refers to the visual density of a block of text. Here's a little sandbox where you can play with some of the properties that impact typographic color.
</p>

<h1>Font Weight</h1>
<div class="wrapper">
  
<div class="font-weight small">
  <h2>Light</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="font-weight medium">
  <h2>Normal</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="font-weight large">
  <h2>Heavy</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>
  
</div>

<h1>Tracking</h1>
<div class="wrapper">
<div class="letter-spacing small">
  <h2>Tight</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="letter-spacing medium">
  <h2>Normal</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="letter-spacing large">
  <h2>Wide</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

</div>

<h1>Word Spacing</h1>
<div class="wrapper">
<div class="word-spacing small">
  <h2>Tight</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="word-spacing medium">
  <h2>Normal</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="word-spacing large">
  <h2>Wide</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

</div>

<h1>Ledding</h1>
<div class="wrapper">
  
<div class="line-height small">
  <h2>Tight</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="line-height medium">
  <h2>Normal</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="line-height large">
  <h2>Double</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>
</div>

<h1>Justification</h1>
<div class="wrapper">
  
<div class="left">
  <h2>Ragged Right</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="justified">
  <h2>Justified</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>

<div class="justified-hyphen">
  <h2>Justified with Hyphenation</h2>
  <p>
Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled <span>`ORANGE MARMALADE'</span>, but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it. 
  </p>
</div>
</div>
            
          
!
            
              /*Let's play!*/

/*Font-weight*/
.font-weight.small {
  font-weight: 300;
}

.font-weight.medium {
  font-weight: 400;
}

.font-weight.large {
  font-weight: 600;
}

/*Letter-spacing*/
.letter-spacing.small, 
.letter-spacing.small span {
  letter-spacing: -0.05em;
}

.letter-spacing.medium, 
.letter-spacing.medium span {
  letter-spacing: 0;
}

.letter-spacing.large, 
.letter-spacing.large span {
  letter-spacing: 0.3em;
}

/*Word-spacing*/
.word-spacing.small {
  word-spacing: -0.2em;
}

.word-spacing.medium {
  word-spacing: 0em;
}

.word-spacing.large {
  word-spacing: 0.5em;
}

/*Line-height */
.line-height.small {
  line-height: 0.9;
}

.line-height.medium {
  line-height: 1.3;
}

.line-height.large {
  line-height: 2;
}

/* Justification */
.left {
  text-align: left;
}

.justified {
  text-align: justify;
}

.justified-hyphen {
  text-align: justify;
  hyphens: auto;
}

/*BONUS - play with letter-spacing on the all-caps ORANGE MARMALADE*/

span {
  letter-spacing: 0.025em;
}

/*Styles*/

* {
  box-model: border-box;
}

body {
  font-size: 16px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
}

.wrapper {
  width: 1080px;
  border-top: 2px solid #efefef;
  display: block;
  margin: 0 auto;
}

.wrapper:after {
  content: "";
  display: table;
  clear: both;
}

.wrapper div {
  width: 300px;
  padding-right: 60px;
  padding-top: 30px;
  padding-bottom: 100px;
  float: left;
}

h1 {
  display: block;
  width: 1080px;
  margin: 0 auto;
  padding: 15px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-variant-ligatures: none;
  font-weight: 700;
  font-size: 32px;
}

h2 {
  display: block;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-variant-ligatures: none;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

p {
  padding: 0;
  margin: 0;
}

p.intro {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 12px;
  font-size: 24px;
}

p.intro:first-of-type {
  padding-top: 100px;
}

p.intro:last-of-type {
  padding-bottom: 100px;
}

@media screen and (max-width: 1100px) {
  
  .intro, 
  h1,
  .wrapper {
    width: 600px;
    padding-bottom: 50px;
  }
  
  .intro:last-of-type,
  .wrapper div,
  h1{
    padding-bottom: 15px;
  }
  
  .wrapper div {
    display: block;
    float: none;
    width: 100%;
    margin: 0 auto;
  }
  
}

@media screen and (max-width: 680px) {
  
  body {
    padding: 35px;
  }
  
  .intro, 
  h1,
  .wrapper {
    width: 100%;
  }
  
  h1 {
    padding: 10px 0;
  }
  
}
            
          
!
999px
Loading ..................

Console