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>I found out about some interesting stuff while reading the <a href="https://www.w3.org/TR/2014/REC-html5-20141028/grouping-content.html#the-li-element">spec</a> for list items. Check it out if you want to learn any more!</p>
  
<p>This is a standard ordered list, but with a twist: you don't actually need the closing list tag on each item for it to be valid:</p>
<ol>
  <li>Boring first item
  <li>Boring second item
  <li>Boring third item
  <li>Slightly interesting fourth item
  <li>Boring fifth item
</ol>

<p>You can reverse the order of a list using the <i>reversed</i> attribute</p>
<ol reversed>
  <li>Boring first item
  <li>Boring second item
  <li>Boring third item
  <li>Slightly interesting fourth item
  <li>Boring fifth item
</ol>

<p>You can change the order on a list item by setting it's <i>value</i> attribute. The list will continue counting up or down from that point, depending on whether <i>reversed</i> is specified.</p>
<ol>
  <li>Boring first item
  <li>Boring second item
  <li value="5">Boring third item
  <li>Slightly interesting fourth item
  <li>Boring fifth item
</ol>

<p>An interesting side effect of this is, if you set a value on a list in reverse order, it will start using negative numbers</p>
<ol reversed>
  <li value="1">Boring first item
  <li>Boring second item
  <li>Boring third item
  <li>Slightly interesting fourth item
  <li>Boring fifth item
</ol>
            
          
!
            
              * {
  background-color: #D65A56;
/*   color: #EFC3C2; */
  color: white;
  margin: 0;
  font-size: 1.3rem;
  line-height: 2rem;
  font-family: "Open Sans", helvetica, sans;
  font-weight: 800;
}

body {
  padding: 1rem 15%;
}

p {
  margin-bottom: 1rem;
  color: #EFC3C2;
}

ul, ol {
  margin: 0 auto 3rem; 
}

li {
/*   color: #EFC3C2; */
}

            
          
!
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