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

              
                <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>
              
            
!

CSS

              
                @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: " >";
}
              
            
!

JS

              
                
              
            
!
999px

Console