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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h1>Pseudo-elements</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem facilis et eum odit architec
  to, neque repellendus tempora. Debitis adipisci excepturi corrupti consectetur veritatis ducimus, aspernatur placeat cum molestias, accusamus laborum.</p>
<p>Animi distinctio fuga nostrum, debitis corporis veritatis doloremque? Distinctio, eveniet. Rerum, nihil ipsa. Non tenetur earum, sint a placeat vitae adipisci nostrum? Necessitatibus asperiores, voluptatum vel assumenda ratione sit ipsum?</p>
<blockquote>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eveniet voluptatibus culpa pariatur aut illo blanditiis debitis dolor quas tempora molestias?
<footer>by Lorem Ipsum</footer>
</blockquote>
<p>Rerum totam sequi voluptas exercitationem enim, reiciendis illo. Cumque veritatis alias repellendus tempore tempora. Consequatur repellendus magni rem hic ad aut vel quidem porro quo, ullam deleniti illum asperiores fugiat?</p>
<p>Quibusdam voluptatibus expedita magnam assumenda dolorem incidunt ea? Cumque facilis nobis provident quas magnam eligendi iure, quae assumenda ea nihil, sequi recusandae dolor placeat similique pariatur dolorem. Officia, quod iure.</p>
<div class="container">
<div class="block">
  <h2>Lorem, ipsum dolor.</h2>
  <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure labore facere neque quisquam? Laboriosam, provident.</p>
  <p>Temporibus nostrum soluta, placeat obcaecati inventore quisquam fugit vitae sit saepe dolore labore iure dolor?</p>
  <a href="" class="readmore">Read More</a>
</div>
<div class="block">
  <h2>Libero dignissimos</h2>
  <p>Ad ea quis quam nulla sit voluptas aliquid delectus explicabo. Nam quidem rem temporibus dicta!</p>
  <p>Consequuntur in, eum voluptatibus laborum quod modi commodi doloribus nam ipsum saepe, autem officia odit.</p>
  <a href="" class="readmore">Read More</a>
</div>
<div class="block">
  <h2>Aliquam magni odit</h2>
  <p>Nulla, omnis exercitationem, pariatur veritatis delectus corporis culpa deleniti voluptatibus adipisci distinctio repellat, architecto error.</p>
  <p>Fuga facere modi molestias? Maxime minima similique asperiores obcaecati cum quae commodi sequi unde molestias.</p>
  <a href="" class="readmore">Read More</a>
</div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Montserrat');
* {
  box-sizing: border-box;
}
*::selection{
  color: #f00; 
  background: #000; 
}
body {
  width: 90%;
  margin: auto;
  font-family: 'Montserrat', sans-serif;
}
blockquote:first-letter{
 color: red;
 font-size: 2em;
 font-weight: bold;
} 
blockquote footer {
  color: #666;
  font-style: italic;
  text-align: right;
}
p {
  text-indent: 15px;
}
p:first-line {
  color: #0a4;
  font-family: Cambria, serif;
  font-size: 1.2em;
}

.block {
  display: inline-block;
  vertical-align: top;
  width: 30%;
  margin: 40px 3% 20px 0;
  padding: 10px 15px;
  border: 1px solid #ccc;
}
.block:last-child {
  margin-right: 0;
}
h2::before {
  content: "News: ";
  color: #0a4;
  display: inline-block;
  transform: translate(0,-35px);
  font-size: 0.8em; 
  padding-top: 10px;
}
.readmore {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9em;
  background-color: #0a4;
  font-family: Cambria, serif;
  color: #fff;
  padding: 6px 15px;
  border-radius: 4px;
}
.readmore:hover {
  background-color: #0f4;
}
.readmore:after {
 content: " >";
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console