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>The Beatles</h1>

<section class="item">
  <div class="item__title">
    <h2>Rubber soul</h2>
  </div>
  <div class="item__content">
    <p>Rubber Soul is the sixth studio album by the English rock group the Beatles.</p>
  </div>
</section>

<section class="item">
  <div class="item__title">
    <h2>Revolver</h2>
  </div>
  <div class="item__content">
    <p>Revolver is the seventh studio album by the English rock band the Beatles.</p>
  </div>
</section>

<section class="item">
  <div class="item__title">
    <h2>Sgt. Pepper's Lonely Hearts Club Band</h2>
  </div>
  <div class="item__content">
    <p>Sgt. Pepper's Lonely Hearts Club Band is the eighth studio album by the English rock band the Beatles.</p>
  </div>
</section>

            
          
!
            
              $spacing: 1rem;

.item {
  display: flex;
  flex-wrap: wrap;
  margin-left: -$spacing;
  margin-bottom: -$spacing;
  
  + .item {
    margin-top: $spacing;
  }
}

.item__title {
  flex: 0 0 auto;
  margin-left: $spacing;
  margin-bottom: $spacing;
}

.item__content {
  flex: 1 1 auto;
  margin-left: $spacing;
  margin-bottom: $spacing;
}

            
          
!
999px
Loading ..................

Console