Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <div id="wrapper">
    <h1>My Lovely Layout</h1>
    <h2>Topic name</h2>
    <p>Open Live View of this pen in a new window, then use your browser tools to zoom to at least 200%.</p>
    <p>Browser support for flipping layout on zoom varies. Try changing the media query to pixel units, or percentages, and try it in different browsers. </p>
    <p>Em units give the most consistent cross-browser effect at the time of making this pen (3rd March 2018).</p>
    <p>&copy; Copyright stuff goes here.</p>                                                             


                #wrapper {
  width: 100%;
  border: 1px solid #333333;
header, footer {
  margin: 0;
  padding: 1em;
  background: #efefef;
  color: #333333;
nav {
  padding: 1em;
  background: #333333;
  color: #ffffff;
main {
  padding: 1em;
  background: #ffffff;
  color: #333333;
/*@media (max-width: 60em){ */
 @media (max-width: 960px) { 
  #wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 10px;
  header, footer {
    grid-column: 1 / -1;