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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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.

            
              h1.wrapper CSS Column Bugs?

div.wrapper
  h2.item-head Basic list
  p This is a basic list. No additional styling.
  ol
    - for i in (1..12)
      li.item Track number #{i}


div.wrapper
  h2.item-head Basic ordered list in columns
  p Set columns and column-gap. Where did the numbers go in Chrome 38? Safari 8 & IE 11 cut off two-digit numbers.
  ol.columns
    - for i in (1..12)
      li.item Track number #{i}

div.wrapper
  h2.item-head Basic unordered list in columns
  p Set columns and column-gap. I guess Chrome 38 doesn't like bullets, either?
  ul.columns
    - for i in (1..12)
      li.item Track number #{i}
      
div.wrapper
  h2.item-head Short list
  p This list has a min-height set to keep it 1 column. Ignored by Safari 8, Firefox 33, and IE 11.
  ol.columns.min-list
    - for i in (1..5)
      li.item Track number #{i}
  
div.wrapper
  h2.item-head min-height Breaks Long Lists
  p This list also has min-height applied. Hm&hellip; Chrome 38 and Safari 8.
  ol.columns.min-list
    - for i in (1..24)
      li.item Track number #{i}
      
div.wrapper
  h2.item-head Left-Aligned Items 
  p We'll get rid of the list numbers, since they weren't working anyway.
  ol.columns.hide-ordinal
    - for i in (1..12)
      li.item Track number #{i}
  
div.wrapper
  h2.item-head Negative Left-Aligned Items 
  p Now, push the items a little to the left with a negative margin. Remember, there is no overflow: hidden set. Chrome 38 cuts off all columns. Safari 8 & IE 11 cut off columns after the 1st.
  ol.columns.hide-ordinal.negative-margin
    - for i in (1..12)
      li.item Track number #{i}
  
  
            
          
!
            
              html { font-family: sans-serif; }

.wrapper {
  width: 75%;
  margin: auto;
}

.item-head {
  margin: 2em 0 0.5em;
  border-bottom: 1px solid #ccc;
}


.columns {
  columns: 250px;
  column-gap: 3em;
  margin-bottom: 3em;
}

.hide-ordinal {
  padding-left: 0;
  list-style-type: none;
}


.min-list {
  min-height: 8em;
}

.negative-margin li {
  margin-left: -2em;
}


            
          
!
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