Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet neque hic, incidunt mollitia. Eius autem, asperiores velit, quaerat blanditiis ratione.</p>
  <blockquote cite="Tim Berners-Lee">The Semantic Web is not a separate Web but an extension of the current one, in which information is given well-defined meaning, better enabling computers and people to work in cooperation.</blockquote>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam quam, dignissimos voluptas, vel provident delectus blanditiis assumenda sunt tenetur, cupiditate adipisci tempora beatae quibusdam quisquam nemo facilis illum voluptatibus eaque.</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet neque hic, incidunt mollitia. Eius autem, asperiores velit, quaerat blanditiis ratione.</p>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=PT+Sans|Ubuntu:300,400,700);

body {
  background: #9b59b6;
  font: normal 300 1em/1.5em 'Ubuntu', sans-serif;
}

.container {
  background: #fff;
  width: 100%;
  max-width: 480px;
  min-width: 320px;
  margin: 2em auto 0;
  padding: 1.5em;
}

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

blockquote {
  display: block;
  border-width: 2px 0;
  border-style: solid;
  border-color: #eee;
  padding: 1.5em 0 0.5em;
  margin: 1.5em 0;
  position: relative;
}
blockquote:before {
  content: '\201C';
  position: absolute;
  top: 0em;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 3rem;
  height: 2rem;
  font: 6em/1.08em 'PT Sans', sans-serif;
  color: #666;
  text-align: center;
}
blockquote:after {
  content: "\2013 \2003" attr(cite);
  display: block;
  text-align: right;
  font-size: 0.875em;
  color: #e74c3c;
}
              
            
!

JS

              
                
              
            
!
999px

Console