Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                .center
  h1.title inline-block inside a text-indent container
  p <code>inline-block</code> was Inherited a parent's <code>text-indent</code> value.
    br
    | List has <code>text-indent</code> & icon is <code>display: inline-block</code>
.row.container
  .col.third
    .area.area-1
      ul.icon-list
        li
          i.list-icon.fas.fa-thumbs-down
          | ねこはゴーシュをご工合で習えておしまいをドレミファに出しとまるで前出しれた所にだまったた。まるであんばい云いて、ひけから弾きていたて小太鼓にまたゴーシュをきっと毛しでまし。
        li
          i.list-icon.fas.fa-thumbs-down
          | ゴーシュはみんなを一生けん命た顔のときみんなへ過ぎないようによ楽長ドレミファに室がやろながらぼくかわらっんに仕上げからいましな。
          a
            i.fas.fa-edit
            | 編集
    div
      pre
        | ul {
        |   list-style: none;
        |   padding-left: 1.2em;
        |   text-indent: -1.2em;
        | }
  .col.third
    .area.area-2
      ul.icon-list
        li
          i.list-icon.icon.fas.fa-thumbs-up
          | ねこはゴーシュをご工合で習えておしまいをドレミファに出しとまるで前出しれた所にだまったた。まるであんばい云いて、ひけから弾きていたて小太鼓にまたゴーシュをきっと毛しでまし。
        li
          i.list-icon.icon.fas.fa-thumbs-up
          | ゴーシュはみんなを一生けん命た顔のときみんなへ過ぎないようによ楽長ドレミファに室がやろながらぼくかわらっんに仕上げからいましな。
          a
            i.fas.fa-edit.icon
            | 編集
    div
      pre
        | ul {
        |   list-style: none;
        |   padding-left: 1.2em;
        |   text-indent: -1.2em;
        | }
        | .icon {
        |   text-indent: 0;
        | }
  .col.third
    .area.area-3
      ul.icon-list
        li
          i.list-icon.icon-inline.fas.fa-thumbs-up
          | ねこはゴーシュをご工合で習えておしまいをドレミファに出しとまるで前出しれた所にだまったた。まるであんばい云いて、ひけから弾きていたて小太鼓にまたゴーシュをきっと毛しでまし。
        li
          i.list-icon.icon-inline.fas.fa-thumbs-up
          | ゴーシュはみんなを一生けん命た顔のときみんなへ過ぎないようによ楽長ドレミファに室がやろながらぼくかわらっんに仕上げからいましな。
          a
            i.fas.fa-edit.icon-inline
            | 編集
    div
      pre
        | ul {
        |   list-style: none;
        |   padding-left: 1.2em;
        |   text-indent: -1.2em;
        | }
        | .icon {
        |   display: inline;
        | }
              
            
!

CSS

              
                .icon-list
  list-style: none
  padding-left: 1.5em
  text-indent: -1.5em
    
  .icon
    text-indent: 0
    
  .icon-inline
    display: inline
  
.list-icon
  display: inline-block
  text-align: center
  width: 1.5em

.container
  max-width: 68em
  margin-left: auto
  margin-right: auto
  
.row
  display: flex
  justify-content: space-between

.col
  margin: 0 .5em
  
.half
  width: 50%

.third
  width: 33.333%
  
.area
  padding: .5em 1em

.area-1
  background-color: #ffb553

.area-2
  background-color: #9bd5d3

.area-3
  background-color: #feee99
  
.title
  font-size: 1.8em
  color: #0d1f2b
  margin: 0 0 .5em
  
a
  color: #fc837e - 50
  cursor: pointer
  text-decoration: underline
  &:hover
    color: #fc837e - 30

.fa-thumbs-up
  color: #9ebe33 - 30

.fa-thumbs-down
  color: #f12d23 - 30
 
.center
  text-align: center

code, pre
  padding: .25em .4em
  background-color: #ddd
  border-radius: .2em
              
            
!

JS

              
                
              
            
!
999px

Console