css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <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>
            
          
!
            
              .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;
}
            
          
!
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.
Loading ..................

Console