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

Packages

Add 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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <html>
  <head>
    <meta charset="utf-8">
    <title>Magazine Style Layout Demo</title>
  </head>
  <body>
    <h1>Magazine Style Layout</h1>
    
    <p>This example uses one static column and 3 different regions to play </p>
      <!-- 
        This part of the layout will not change
        regardless of the content of the regions -->
        <div id='left-content' class='content'>      
          <h2>Static Content</h2>
        </div>      

      <!-- 
        Setup the regions the flows will go into 
      -->
        <article id='region1' class='region content'></article>
        <article id='region2' class='region content'></article>
        <article id='region3' class='region content'></article>

    <!--
      Individual flows for each regions
    -->
    
    <div id='source-region1'><h2>This is article 3</h2></div>
    <div id='source-region2'><h2>This is article 2</h2></div>
    <div id='source-region3'><h2>This is article 1</h2</div>
  </body>
</html>
            
          
!
            
              html, body {
  width: 100%;
  height: auto;
  overflow: auto;
}

}


#wrapper {
  position: auto;
  height: auto;
}

#left-content {
  position: absolute;
  width: 50%;
  float: left;
}


.region {
	height: 800px;
  padding-left: 5px;
}

#region3 {
  -webkit-flow-from: article3-flow;
	-ms-flow-from: article3-flow;
  flow-from: article3-flow;
  position: relative;
  float: right;
  width: 25%;
  margin-right: 10px;
  border: 1px solid blue;
}

#region2 {
  -webkit-flow-from: article2-flow;
	-ms-flow-from: article2-flow;
  flow-from: article2-flow;
  position: relative;
  float: right;
  width: 30%;
  margin-right: 10px;
  border: 1px solid green;
}

#region1 {
  -webkit-flow-from: article1-flow;
	-ms-flow-from: article1-flow;
  flow-from: article1-flow;
  position: relative;
  float: right;
  width: 30%;
  border: 1px solid red;
}

/*
  The content in the IDs below will dissapear from 
  the text flow and only appear in the regions the 
  text flows into. No other style is needed below.
*/

#source-region1 {
	-webkit-flow-into: article1-flow;
	-ms-flow-into: article1-flow;
  flow-into: article1-flow;
}

#source-region2 {
	-webkit-flow-into: article2-flow;
	-ms-flow-into: article2-flow;
  flow-into: article2-flow;
}

#source-region3 {
	-webkit-flow-into: article3-flow;
	-ms-flow-into: article3-flow;
  flow-into: article3-flow;
}
            
          
!
999px

Console