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.

            
              <h1>The man who speaks in anagrams (Monty Python)</h1>

<div class="dialogue-wrapper">
  <p class="voice-1"><span>Palin:</span> Hello, good evening and welcome to another edition of Blood Devastation Death War and Horror, and later on we'll be meeting a man who <em>does</em> gardening. But first on the show we've got a man who speaks entirely in anagrams.</p>
  <p class="voice-2"><span>Idle:</span> Taht si crreoct.</p>
  <p class="voice-1"><span>Palin:</span> Do you enjoy it?</p>
  <p class="voice-2"><span>Idle:</span> I stom certainly od. Revy chum so.</p>
  <p class="voice-1"><span>Palin:</span> And what's your name?</p>
  <p class="voice-2"><span>Idle:</span> Hamrag - Hamrag Yatlerot.</p>
  <p class="voice-1"><span>Palin:</span> Well, Graham, nice to have you on the show. Now, where do you come from?</p>
  <p class="voice-2"><span>Idle:</span> Bumcreland.</p>
  <p class="voice-1"><span>Palin:</span> Cumberland?</p>
</div>
            
          
!
            
              %speak {
  font-family: Courier New, monospace;
  max-width: 400px;
  clear: both;
  span {
    font-weight: bold;
    display: block;
  }
}
.voice-1 {
  @extend %speak;
  span {
    color: magenta;
  }
}
.voice-2 {
  @extend %speak;
  float: right;
    span {
      color: green;
  }
}
h1 {
  font-family: Helvetica, sans-serif;
  text-align: center;
}
.dialogue-wrapper {
  width: 500px;
  margin: auto;
}

            
          
!
999px
Loading ..................

Console