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

            
              [[[https://codepen.io/tylersticka/pen/1b8aa275a14125f5219347ef46b276da]]]
<div class="container">
  <div class="prose">
    <h1>Introduction</h1>
    <p>Are creatures of the cosmos intelligent beings bits of moving fluff a very small stage in a vast cosmic arena Tunguska event, rich in heavy atoms concept of the number one the only home we've ever known astonishment another world great turbulent clouds white dwarf.</p>
  </div>
  <div class="sidebar">
    <div class="box">
      <h2 class="box-header">Actions</h2>
      <ul class="box-menu">
        <li><a href="">Do a thing</a></li>
        <li><a href="">Register your bad self</a></li>
        <li><a href="">Hold the phone</a></li>
      </ul>
    </div>
    <div class="box">
      <h2 class="box-header">Related Stuff</h2>
      <ul class="box-menu">
        <li><a href="">Just a link</a></li>
        <li><a href="">Another link</a></li>
      </ul>
    </div>
  </div>
  <div class="prose">
    <h2>Additional Information</h2>
    <p>Laws of physics Euclid courage of our questions? Permanence of the stars something incredible is waiting to be known two ghostly white figures in coveralls and helmets are soflty dancing tendrils of gossamer clouds hydrogen atoms laws of physics a very small stage in a vast cosmic arena extraordinary claims require extraordinary evidence encyclopaedia galactica brain is the seed of intelligence courage of our questions. Venture dream of the mind's eye ship of the imagination? Hydrogen atoms circumnavigated. A very small stage in a vast cosmic arena Euclid star stuff harvesting star light vastness is bearable only through love Drake Equation radio telescope!</p>
    <p>Not a sunrise but a galaxyrise something incredible is waiting to be known circumnavigated, radio telescope great turbulent clouds how far away intelligent beings, dispassionate extraterrestrial observer the ash of stellar alchemy paroxysm of global death venture? Hundreds of thousands! Tunguska event rings of Uranus birth. Descended from astronomers not a sunrise but a galaxyrise stirred by starlight, gathered by gravity descended from astronomers culture radio telescope billions upon billions. Rich in mystery paroxysm of global death quasar and billions upon billions upon billions upon billions upon billions upon billions upon billions!</p>
  </div>
</div>
            
          
!
            
              /**
 * 1. Use grid.
 * 2. Gutter space.
 * 3. Center at large sizes.
 * 4. Set maximum width.
 */

.container {
  display: grid; /* 1 */
  grid-gap: 1.5em; /* 2 */
  margin: 1.5em auto; /* 2, 3 */
  max-width: 64em; /* 4 */
  padding: 0 1.5em; /* 2 */
}

/**
 * Sidebar inherits grid display styles and gap size. This will be simpler once `display: subgrid` is supported!
 */

.sidebar {
  display: inherit;
  grid-gap: inherit;
}

/**
 * At slightly wider sizes, show sidebar elements side by side (each taking up half the space, minus gutter gap and stuff).
 */

@media (min-width: 34em) and (max-width: 49.9375em) {
  .sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

/**
 * At even wider sizes…
 */

@media (min-width: 50em) {
  
  /**
   * Establish one primary (⅔) column and one secondary (⅓) column.
   */
  
  .container {
    grid-template-columns: 2fr 1fr;
  }
  
  /**
   * 1. Automatically create sidebar rows that are as short as their content will allow.
   * 2. Make this element span two rows, allowing prose elements to flow to its left.
   */
  
  .sidebar {
    grid-auto-rows: min-content; /* 1 */
    grid-row: span 2; /* 2 */
  }
}
            
          
!
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