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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.

HTML

            
              <article>
  <p>Nisl hic eum purus volutpat molestias reprehenderit nostra eius, aliquid. Quam habitasse! Elit, eaque eum. In non ligula alias repellendus maecenas ullam facere occaecati, consectetur mattis nonummy, eget? Minim, anim? Ipsa aute iusto, vero minus consequatur? Ratione tempus eveniet nostra integer lacinia! Quas posuere quis! Penatibus cupidatat vivamus euismod cupidatat phasellus. Repellendus. Leo reiciendis adipiscing tenetur hac cras corporis! Accumsan? Erat voluptate, pede consequatur ullam, faucibus, aliquam, quo mi iste, labore iure, exercitationem odit congue nam fames doloribus tellus integer excepteur accusantium sunt cum modi consequat eligendi! Imperdiet adipisci numquam, pede enim. Facilisis, convallis, ultrices ultrices architecto possimus. Tempora diam.</p>

<p>Porro massa malesuada id sem facilisis provident provident ducimus placerat! Per dolorem? Curae dictum, velit atque vestibulum quod ea nobis architecto! Laborum condimentum earum? Orci nostrud convallis quasi accusantium tincidunt habitant varius? Ornare totam beatae eligendi, blanditiis cupidatat fermentum, enim erat repudiandae occaecati wisi phasellus! Perspiciatis! Eleifend similique vero aliqua elit! Rerum, bibendum aperiam, tortor, consequuntur aliquet fugiat viverra proident adipiscing nam cursus sapien, proin proin perferendis aute qui, nesciunt molestiae sollicitudin, ipsa, cillum mattis hic aenean, in? Pretium aut taciti saepe reiciendis enim dis minus nihil. Esse conubia quia quisquam ad fringilla nemo lacus magnis praesent placerat est quaerat.</p>

<p>Cras pariatur aute quidem feugiat excepteur integer vero incididunt arcu recusandae eiusmod aliqua enim mauris in, nisi maxime minim perferendis, occaecat neque, molestias per! Sociosqu, morbi nesciunt ultrices! Nostra orci, duis conubia eos, irure habitant dictumst, voluptatum mollitia voluptatum id iusto fames ullamco diamlorem lacinia id praesent urna labore maecenas fugit diam, convallis nulla, provident sint, convallis quos perferendis excepturi? Malesuada nec tempus, lacus ullamcorper exercitation minus hac lobortis accusantium, justo nobis tempus nonummy dolores posuere porta repellendus, nostrum pharetra nec vulputate dolorum cursus! Inceptos, ullam sociosqu mi sollicitudin leo, aliquid nemo alias aliqua expedita etiam a occaecat. Conubia sem.</p>
  
<div class="rib">Ribbon</div>
</article>
            
          
!

CSS

            
              .rib {
  height: 20px;
  background: #407283;
  color: #fff;
  text-align: center;
  margin-left: -58px;
  margin-right: -58px;

}

.rib:before, .rib:after{
  content: "";
  float: left;
  margin-top: 20px; 
  width: 0; 
	height: 0; 
	border-left: 8px solid transparent;
	border-right: 0 solid transparent;
	border-top: 8px solid #163136;
}

.rib:after {
  float: right;
  border-left: 0 solid transparent;
	border-right: 8px solid transparent;
}
article{
  width: 500px;
  padding: 50px;
  background: #ddd;
  margin: 0 auto;
  box-shadow: 0 0 20px #666;
}
            
          
!

JS

            
              
            
          
!
999px

Console