Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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">
<h1>Blurred background image</h1>
<h2>Readability is important</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Praesentium maxime quia eum incidunt dolorum tempore inventore quam voluptates cum beatae repellendus adipisci, exercitationem repellat, laborum non distinctio atque corrupti natus!</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem voluptates non nam, dolorum dolores inventore nemo delectus saepe veritatis, maxime vitae omnis at asperiores dolore a labore incidunt expedita obcaecati?</p>
  <h2>Accessibility ready</h2>
 <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ullam fugiat tempore assumenda explicabo praesentium quam accusamus esse voluptatem vitae veniam voluptas facere blanditiis dolor illo rem cumque corporis, fugit labore.</p>
  <h2>Legible contrast</h2>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum delectus deleniti mollitia ullam tempore quasi possimus quisquam adipisci pariatur! Velit repudiandae ratione, quos accusantium inventore sit quasi neque ducimus cupiditate.</p>
  <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Veritatis architecto voluptas voluptatem aut quos debitis impedit, praesentium blanditiis perspiciatis beatae dolor a. Molestiae deserunt numquam omnis temporibus voluptates fugit aperiam?</p>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,600');
body {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}
body:before {
  z-index: -1;
  opacity: 0.5;
  position: fixed;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(https://images.unsplash.com/photo-1504109586057-7a2ae83d1338?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=b66e9d835de3873a86d1cec996a1af06&auto=format&fit=crop&w=1490&q=80) center no-repeat;
  background-size: cover;
  filter: blur(10px);
  transform: scale(1.2);
}
.container {
  max-width: 42em;
  margin: auto;
}
h1 {
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
  border: 1px solid #000;
  margin-bottom: 1.5em;
  padding: 1em 0;
}
h2 {
  font-weight: 600;
}
              
            
!

JS

              
                
              
            
!
999px

Console