css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

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.

            
              <div id="regionA" class="region"></div>
<div id="regionB" class="region"></div>
<div id="regionC" class="region"></div>

<div id="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer semper fermentum turpis vitae vestibulum. Suspendisse sodales convallis augue. Vivamus et diam eu neque pellentesque blandit in ut neque. Quisque dapibus ante massa, molestie tempor erat malesuada mollis. In enim sapien, sollicitudin a varius at, placerat laoreet urna. Morbi eget venenatis nunc. Nam vulputate tellus eget dolor feugiat auctor. Etiam in venenatis libero. Donec volutpat nisl sit amet scelerisque mollis. Vivamus commodo sapien nec lacus euismod, fermentum pretium nisi porta.

Nullam imperdiet, nibh vel auctor dapibus, magna odio varius ipsum, vitae dapibus sem odio vitae quam. Suspendisse potenti. Mauris vitae lorem sit amet massa adipiscing consectetur. Aenean et massa et nulla ullamcorper accumsan non a neque. Maecenas blandit nulla vitae venenatis facilisis. Suspendisse neque neque, hendrerit sed tellus ac, condimentum viverra nisl. In ac varius ligula.

Aliquam rhoncus porta nulla, in posuere nibh rhoncus sed. Sed eros sem, fringilla sed tristique vel, facilisis non tellus. Cras ut tincidunt tellus, non bibendum urna. Morbi ligula sem, interdum in pharetra quis, sollicitudin quis dolor. Maecenas in massa quis magna fermentum malesuada. In vitae felis non tellus aliquam consequat in non urna. Fusce non neque quis leo aliquam gravida. Praesent tincidunt ligula mauris. Donec congue magna nisi, nec molestie dui mollis non. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam consectetur dolor vitae imperdiet blandit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;

Nam convallis erat et tellus euismod, et ultrices nisi accumsan. In hac habitasse platea dictumst. Nunc erat felis, varius a euismod et, elementum ac justo. Integer tempus non risus gravida pharetra. Pellentesque ac risus vel metus adipiscing rutrum non eget enim. Maecenas pretium dapibus lacus. Sed non velit vitae ligula mattis placerat. Aenean a orci purus. Maecenas non neque pharetra, placerat ante iaculis, molestie orci. Aenean consectetur pretium dapibus. Suspendisse quis nisl tellus. Sed porta ipsum in congue sollicitudin. Phasellus interdum et elit vitae tempus.

Nullam lorem justo, tincidunt sed nisl ac, suscipit blandit arcu. Curabitur quis diam mauris. Cras tristique sed massa a sollicitudin. Sed ullamcorper nisl in dui vulputate, ut gravida urna semper. Phasellus a neque vel ipsum lobortis suscipit quis non nibh. Ut ante dui, ornare quis mi sit amet, ornare vestibulum libero. Donec dapibus felis vitae purus tristique, ut dictum erat pellentesque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus et mi et sapien iaculis porta id non ligula. Cras nec enim velit. Aenean mollis consequat ipsum, sodales scelerisque dolor sodales nec. Pellentesque vehicula posuere sapien ut sollicitudin. Maecenas tellus nisi, hendrerit ut dui ac, venenatis fermentum mi. Fusce luctus velit eros, at malesuada odio malesuada sed. Curabitur tempor sed leo vitae ullamcorper. Donec iaculis massa felis, ac tincidunt nunc feugiat et.
</div>
            
          
!
            
              html{
  font-family: helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

#regionA{
  max-width: 30rem;
  width: 50%;
  height: 200px;
}

#regionB{ 
  max-width: 30rem;
  width: 50%;
  height: 200px;
  margin-left: 15rem;
}

#regionC{ 
  max-width: 30rem;
  width: 50%;
  margin-left: 7rem;
}

#content{
  -webkit-flow-into: myFlow;
}

.region{
  -webkit-flow-from: myFlow;
}

@media screen and (max-width: 500px) {
  #content{
     -webkit-flow-into: none; 
  }
  
  .region{
    display: none;  
  }
}
            
          
!
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