cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis vulputate nulla, scelerisque rutrum urna. Curabitur mauris orci, sodales eu neque sit amet, venenatis finibus lorem. Vestibulum pulvinar odio eget eros luctus, at aliquam purus molestie. Donec elementum nunc et mi vestibulum egestas. Integer quis nunc condimentum, porta erat et, pulvinar purus.</p>
  <img src="https://www.ampproject.org/static/img/docs/pwamp_add_to_homescreen.png" width="848" height="1500">
  <p>Mauris et condimentum lacus. Praesent metus tellus, elementum sit amet nunc non, ultrices feugiat risus. Maecenas auctor elit vitae metus sagittis porta. Quisque finibus suscipit ultrices. Nulla turpis eros, convallis sit amet est sed, pulvinar malesuada dolor. Morbi bibendum mi non dui fringilla, quis porttitor ligula posuere. Aenean ultrices suscipit libero, sit amet feugiat velit molestie in.</p>
    <li>Look at me, I'm a list item</li>
    <li>Me too, guess what</li>
    <li>Hey, don't forget me! I know, I'm a really long entry but I deserve some love too. Can't you see that?</li>
    <li>OK if #3 can join, I want in as well</li>
    <li>Fine whatever, looks like we're all here now.</li>
  <p>Curabitur euismod leo libero, id scelerisque sapien maximus et. Praesent vehicula lacinia rutrum. Quisque vitae mauris dictum, finibus lectus sit amet, laoreet tortor. Nulla fermentum tortor arcu, ac aliquet diam vestibulum at. Ut tincidunt venenatis rhoncus. Morbi blandit consectetur tincidunt. Vestibulum sit amet velit vitae arcu accumsan luctus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi eu pellentesque ligula, at pharetra lectus. Fusce et augue porta, pellentesque felis vehicula, mollis neque. Aenean non purus a mauris lacinia iaculis vel in sapien. Aliquam ante metus, sodales quis fringilla in, rhoncus eu metus.</p>
  <p>Nulla ultrices, justo vestibulum blandit mollis, magna orci placerat nisl, a tincidunt dui diam a nisl. Nam a nulla pharetra, dapibus eros sed, egestas felis. Donec ac enim eget eros tempus dignissim ac vitae risus. Donec a mi a est fringilla congue et non leo. In hac habitasse platea dictumst. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum nec consectetur nulla. Praesent venenatis elit vehicula tincidunt tincidunt. Morbi erat nunc, maximus at porttitor eget, gravida ut quam.</p>
  <p>Pellentesque in felis in est sodales mattis. Integer neque magna, gravida sit amet nisi id, dignissim imperdiet lectus. Donec ut nisi est. Suspendisse convallis tempus volutpat. Nunc venenatis hendrerit ligula, eget molestie magna pulvinar nec. Nam id luctus ex, eget finibus felis. Sed efficitur lacus vitae congue euismod. Vivamus lobortis purus eu sem tristique, vel sagittis dolor volutpat. Mauris dictum malesuada felis, sit amet dapibus mi. Pellentesque et finibus mauris. Phasellus metus ipsum, ullamcorper vitae neque sed, sollicitudin interdum odio. Sed ut urna efficitur urna fermentum faucibus et at ligula.</p>

              body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;

main {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1em 2em;
  background: #f5f6f5;
  box-sizing: border-box;

img {
  width: 33%;
  height: auto;
  float: left;

ul {
  /* just for visualization purposes */
  border: 1px solid red;
  /* display: inline-block; */
  /* display: flex; /* 
  /* flex-direction: column; */
  /* overflow: hidden; */
🕑 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 ..................