cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              <div class="toggle-stuff">
    <h2 class="display-1">Bootstrap 4 Flex Box Grid Demo</h2>
    <h4>Fíjate como la altura de las columnas quedan iguales con Flex Box.</h4>
     <a href="#" class="btn btn-sm btn-success-outline" data-url="https://cask.scotch.io/bootstrap-4.0.css">Default BS4 Grid</a>
     <a href="#" class="btn btn-sm btn-success-outline" data-url="https://cask.scotch.io/bootstrap-4.0-flex.css">Flex Box BS4 Grid</a>
</div>

<div class="container">
    <div class="row">
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum voluptatem quo quibusdam eos quod maiores, quae ea. Enim accusantium, rem asperiores perspiciatis, nemo saepe sequi, dolorum eaque officia ipsam cupiditate.
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit.
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum voluptatem quo quibusdam eos quod maiores, quae ea. Enim accusantium, rem asperiores perspiciatis, nemo saepe sequi, dolorum eaque officia ipsam cupiditate.
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum voluptatem quo quibusdam eos quod maiores, quae ea. Enim accusantium, rem asperiores perspiciatis, nemo saepe sequi, dolorum eaque officia ipsam cupiditate.
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum voluptatem quo quibusdam eos quod maiores, quae ea. Enim accusantium, rem asperiores perspiciatis, nemo saepe sequi, dolorum eaque officia ipsam cupiditate.
        </div>
        <div class="col-md-2">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum voluptatem quo quibusdam eos quod maiores
        </div>
        <div class="col-md-2">
            Lorem
        </div>
    </div>
</div>
            
          
!
            
              html {
  font-size: 16px;
}
[class^="col"] {
    background: rgba(255, 69, 69, 0.73);
    border: 1px solid rgba(255, 69, 69, 0.8);
}
.toggle-stuff {
  text-align: center;
  margin: 30px 0;
}
h2 {
    margin: 30px 0 15px;
}
h4 {
  margin-bottom: 20px;
}
            
          
!
            
              $('.toggle-stuff a').click(function() {
  $this = $(this);
  
  // Ghetto, whatever
  $('link').each(function() {
      
    if ($(this).attr('rel') == 'stylesheet prefetch') {
      $(this).attr('href', $this.data('url'));      
    }
    
  });
  
    return false;
});


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console