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

              
                <div class="page">
  
  <div class="section menu">Menu</div>
  
  <div class="section header">
    Header
  </div>
  
  <div class="section about">
    <div class="img-placeholder">About</div>
  </div>

  
  <div class="section project project-1">Project 1</div>
  <div class="section project project-2">Project 2</div>
  <div class="section project project-3">Project 3</div>
  <div class="section project project-3">Project 4</div>
  <div class="section project project-1">Project 5</div>
  <div class="section project project-2">Project 6</div>
  <div class="section project project-2">Project 7</div>  
  <div class="section project project-3">Project 8</div>
  <div class="section project project-1">Project 9</div>
  <div class="section project project-1">Project 10</div>
  <div class="section project project-2">Project 11</div>
  <div class="section project project-3">Project 12</div>
  
  
  <div class="section contact">
    <div class="img-placeholder">Contact</div>
  </div>
  
  <div class="section footer">Footer</div>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 18px;
  font-family: Montserrat;
}

.page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}



.section {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu,
.footer {
  background-color: #5995DA;
  height: 60px;
}

.header {
  background-color: #B2D6FF;
}

.project {
  border: solid 1px;
}

.about {
  background-color: #EAEDF0;
  height: 600px;
}

.contact {
  background-color: #D6E9FE;
}

.project-1 {
  background-color: #F5CF8E;
}

.project-2 {
  background-color: #F09A9D;
}

.project-3 {
  background-color: #C8C6FA;
}


/* Mobile Styles */
@media only screen and (max-width: 500px) {
  .contact {
    order: 1;
  }
}

/* Tablet Styles */
@media only screen and (min-width: 501px) and (max-width: 960px) {
  .project {
    width: 50%;
  }
}

/* Desktop Styles */
@media only screen and (min-width: 961px) {
  .page {
    width: 960px;
    margin: 0 auto;
  }

  .project {
    width: 33.3%;
  }
  .header {
    height: 400px;
  }
  .contact {
    height: 200px;
  }
}


              
            
!

JS

              
                //https://www.materialui.co/
              
            
!
999px

Console