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 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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. Center horizontally at large sizes.
 * 2. Limit the maximum width.
 * 3. Add half-gutter whitespace which will combine with child elements.
 */

.container {
  margin: 0 auto; /* 1 */
  max-width: 64em; /* 2 */
  padding: 0.75em; /* 3 */
}

/**
 * Clearfix
 *
 * Not using the simpler `overflow: hidden` version because maybe we'll want dropdowns or something inside?
 */

.container::after {
  clear: both;
  content: " ";
  display: table;
}

/**
 * Give content areas half the gutter space padding, which combines with the container margin to form the full gutter widths.
 */

.prose,
.sidebar {
  padding: 0.75em;
}

/**
 * 1. Use flexbox so we can easily change the layout in later media queries.
 * 2. Display in a column by default.
 * 3. Counteract the parent margin so the sidebar elements can benefit from the same additive margin.
 */

.sidebar {
  display: flex; /* 1 */
  flex-direction: column; /* 2 */
  margin: -0.75em; /* 3 */
  position: relative; /* 3 */
}

/**
 * Combines with sidebar whitespace to form full gutter width.
 */

.box {
  margin: 0.75em;
}

/**
 * At slightly wider sizes, show sidebar boxes side-by-side.
 */

@media (min-width: 34em) and (max-width: 49.9375em) {
  .sidebar {
    flex-direction: row;
  }
  
  .box {
    flex: 50%;
  }
}

/**
 * At even wider sizes, float the elements so the sidebar content will rise to the top.
 */

@media (min-width: 50em) {
  .prose {
    float: left;
    width: 66.666%;
  }
  
  .sidebar {
    float: right;
    width: 33.333%;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console