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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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>This is no simple reform. It really is a revolution. Sex and race, because they are easy, visible differences, have been the primary ways of organizing human beings into superior and inferior groups, and into the cheap labor on which this system still depends. We are talking about a society in which there will be no roles other than those chosen, or those earned. We are really talking about humanism. <cite>Gloria Steinem, ‘Address to the Women of America’ (1971)</cite></p>

<footer>This is a demonstration of the <a href="https://drafts.csswg.org/css-inline/#sizing-drop-initials" target="new">Initial Letter</a> property in CSS. You will only see a result if you are using a <a href="http://caniuse.com/#feat=css-initial-letter" target="new">browser that supports `initial-letter.`</a> As of July 2017, that's Safari 9 and 10.</footer>
            
          
!
            
              p {
  font-family: georgia;
  font-size: 1.2rem;
  line-height: 1.8rem;
  max-width: 400px;
  margin: 8rem auto;
}
@supports (initial-letter:2) or (-webkit-initial-letter:2) {
  p:first-letter {
    -webkit-initial-letter: 4;
    initial-letter: 4;
    border: 1px solid black;
    padding: 1.6rem;
    margin: 0 1rem 0 0;
  }
}
cite {
  display: block;
  margin-left: 2rem;
}
cite:before {
  content: '— ';
}
footer {
  max-width: 400px;
  margin: 8rem auto;
  color: #444;
  font-family: avenir, roboto, helvetica, san-serif;
  font-size: 0.8em;
}
a {
  text-decoration: none;
  color: #34b4c5;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console