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>Media Object</h2>

<p>A media object is typically an image to the left, with descriptive content to the right. Foundation's Media Object will help you create this common repeatable pattern and can be used several different ways. Without using hacky floats, Foundation's media object achives this using either the table method, or Flexbox in the flex version.</p>

<p>A media object is a container with the class <code>.media-object</code>, and two or three sections with the class <code>.media-object-section</code>.</p>

<p>The unique behavior of Media Objects is the images in Media Objects are set to NOT shrink as the containers get smaller. This is desireable for many reasons but can be easily overwritten.</p>

<div class="primary callout">
  <p>In flexbox mode, the class <code>.main-section</code> must be added to your center section in order to properly size it.</p>
</div>

<div class="media-object">
  <div class="media-object-section">
    <div class="thumbnail">
      <img src="http://fillmurray.com/150/150">
    </div>
  </div>
  <div class="media-object-section main-section">
    <h4>Dreams feel real while we're in them.</h4>
    <p>I'm going to improvise. Listen, there's something you should know about me... about inception. An idea is like a virus, resilient, highly contagious. The smallest seed of an idea can grow. It can grow to define or destroy you.</p>
  </div>
</div>
              
            
!

CSS

              
                body {
  margin: 2rem;
}
              
            
!

JS

              
                $(document).foundation();


              
            
!
999px

Console