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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <link href='https://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,900,300' rel='stylesheet' type='text/css'>
<h1>Multiple Columns and the Picture element combo</h1>

<article>
  <h2>CSS Multiple Columns</h2>
	<p><span class="firstcharacter">A</span>dobe has confirmed that a recent cyber-attack compromised many more customer accounts than first reported. The software-maker said that it now believed usernames and encrypted passwords had been stolen from about 38 million of its active users.
  <picture>
	  <source srcset="http://placehold.it/250x250" class="large" media="(min-width: 800px)">
	  <source srcset="http://placehold.it/150x150" class="med" media="(min-width: 700px)">
	  <source srcset="http://placehold.it/100x100" class="tiny">
	  <img src="http://placehold.it/100x100" class="oops" alt="Fallback">
  </picture>
    
  It added that the attackers had also accessed details from an unspecified number of accounts that had been unused for two or more years. The firm had originally said 2.9 million accounts had been affected.
    
  <h3>Header</h3>
    Adobe has also announced that the hackers stole parts of the source code to Photoshop, its popular picture-editing program.
  <br /><br />
    Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam quis risus eget urna mollis ornare vel eu leo.
  <br /><br />
    Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas faucibus mollis interdum. Curabitur blandit tempus porttitor.  
    Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.   
    Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec ullamcorper nulla non metus auctor fringilla.
  
    <blockquote>
      Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.
    </blockquote>
    
    Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Maecenas faucibus mollis interdum. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
  </p>
<article>
              
            
!

CSS

              
                body{ font-family: 'Merriweather', serif; color: #444;}
.container{ width: 80%; margin: 0 auto; border: 1px dashed lightgrey; padding: 20px;}

@media all and (min-width: 400px) {
   article{
      -moz-columns:3; /* How many columns? */
      -webkit-columns:3;
      columns:3;
  
      -webkit-column-gap: 40px; /* Chrome, Safari, Opera */
      -moz-column-gap: 40px; /* Firefox */
      column-gap: 40px;
  
      line-height: 1.5em;
      font-size: 1em;
  
      -webkit-column-rule: 2px outset #444; /* Chrome, Safari, Opera */
      -moz-column-rule: 2px outset #444; /* Firefox */
      column-rule: 2px outset #444;
  }
}
/*Styling*/
img{display: block; padding-top: 10px; padding-bottom: 10px;}
picture{padding-top: 10px; padding-bottom: 10px;}
h1{font-size: 1.6em; color: #444; font-family: Source Sans Pro, Arial, sans-seirf;}

h2{ column-span: all; -webkit-column-span:all; /*spans all the columns*/  font-size: 1.8em; text-align: center; color: #903; font-weight: 300;}

.firstcharacter { float: left; color: #903; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; font-weight: 900; }

blockquote{ color: black; font-style: italic;}

              
            
!

JS

              
                
              
            
!
999px

Console