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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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… 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
Loading ..................

Console