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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <h2> Multi-column Fixed-height Problem</h2>
<div class="multi-column count fixed-height">

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed molestie eros faucibus mauris finibus, eu tincidunt eros faucibus. Fusce sollicitudin scelerisque fringilla. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam posuere aliquam
    lorem sit amet viverra. Cras faucibus mauris ac metus dignissim accumsan. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque cursus arcu sit amet vulputate ornare. Curabitur gravida nisl at velit efficitur,
    ut pellentesque urna accumsan. Cras tincidunt ac leo sed accumsan. Etiam a neque justo.</p>

  <p>Sed lobortis eu urna eget euismod. In scelerisque tincidunt ex, non accumsan nisi tristique eu. Morbi rutrum nibh lorem, pharetra pellentesque massa laoreet elementum. Pellentesque sed dictum urna, nec imperdiet tortor. Donec vitae leo nec eros porttitor
    condimentum. Aenean porttitor lobortis felis in pharetra. Aenean consectetur, enim sit amet ullamcorper tincidunt, libero nisl luctus metus, quis condimentum lorem magna non tellus. Phasellus faucibus lorem velit, quis interdum ex dignissim vitae.
    Nullam ex justo, condimentum sed massa vel, faucibus aliquet sapien. Maecenas lacinia velit quis fermentum faucibus. Ut pharetra massa ut consequat lobortis. Quisque lobortis bibendum velit, et facilisis diam. Curabitur nec leo efficitur magna vehicula
    ultrices. Quisque laoreet vulputate tortor, eu consectetur quam ultricies non.
  </p>
</div>

<h2> Multi-column Fixed-height Solution (resize the window)</h2>
<div class="multi-column count responsive-height">

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed molestie eros faucibus mauris finibus, eu tincidunt eros faucibus. Fusce sollicitudin scelerisque fringilla. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam posuere aliquam
    lorem sit amet viverra. Cras faucibus mauris ac metus dignissim accumsan. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque cursus arcu sit amet vulputate ornare. Curabitur gravida nisl at velit efficitur,
    ut pellentesque urna accumsan. Cras tincidunt ac leo sed accumsan. Etiam a neque justo.</p>

  <p>Sed lobortis eu urna eget euismod. In scelerisque tincidunt ex, non accumsan nisi tristique eu. Morbi rutrum nibh lorem, pharetra pellentesque massa laoreet elementum. Pellentesque sed dictum urna, nec imperdiet tortor. Donec vitae leo nec eros porttitor
    condimentum. Aenean porttitor lobortis felis in pharetra. Aenean consectetur, enim sit amet ullamcorper tincidunt, libero nisl luctus metus, quis condimentum lorem magna non tellus. Phasellus faucibus lorem velit, quis interdum ex dignissim vitae.
    Nullam ex justo, condimentum sed massa vel, faucibus aliquet sapien. Maecenas lacinia velit quis fermentum faucibus. Ut pharetra massa ut consequat lobortis. Quisque lobortis bibendum velit, et facilisis diam. Curabitur nec leo efficitur magna vehicula
    ultrices. Quisque laoreet vulputate tortor, eu consectetur quam ultricies non.

  </p>
</div>
              
            
!

CSS

              
                body {
  padding: 0 30px;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2em;
  margin-bottom: 0;
  margin-top: 50px;
}

.multi-column > p:first-child {
  margin-top: 0;
}

.multi-column {
  font-family: 'Raleway';
  line-height: 1.5em;
  font-size: 0.9em;
  text-align: justify;
  padding: 2rem 0;
}

.multi-column.fixed-height,
.multi-column.responsive-height {
  height: 250px;
}

@media (max-width: 1040px) {
  .multi-column.responsive-height {
    height: auto;
  }
}

.multi-column.count {
  column-count: 3;
}
              
            
!

JS

              
                
              
            
!
999px

Console