octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.

            
              <div class="header">
  blah blah header
</div>

<div class="wrapper">
  <h1>title</h1>
  <h2>etc etc</h2>
  <div class="normal">
    <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus turpis augue, malesuada eget pharetra malesuada, cursus id arcu. Etiam venenatis facilisis risus vitae ornare. Pellentesque ut dolor orci, vitae tempor tellus.</p>
  </div>
</div>
<div class="outside">
  <div class="wrapper">
    <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus turpis augue, malesuada eget pharetra malesuada, cursus id arcu. Etiam venenatis facilisis risus vitae ornare. Pellentesque ut dolor orci, vitae tempor tellus.</p>
  </div>
</div>
<div class="wrapper">
  <div class="normal">
    <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus turpis augue, malesuada eget pharetra malesuada, cursus id arcu. Etiam venenatis facilisis risus vitae ornare. Pellentesque ut dolor orci, vitae tempor tellus.</p>
  </div>
  <div class="normal">
    <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus turpis augue, malesuada eget pharetra malesuada, cursus id arcu. Etiam venenatis facilisis risus vitae ornare. Pellentesque ut dolor orci, vitae tempor tellus.</p>
  </div>
</div>
    
<div class="footer">
  blah blah footer
</div>
            
          
!
            
              .header{
    width: 100%;
    background-color:black;
    color:#fff;
}

.wrapper{
    background-color:grey;
    margin: 0 auto;
    width: 320px;
}

.wrapper .normal{
    background-color:red;
}

.outside{
    background-color:blue;
}

.footer{
    width: 100%;
    background-color:black;
    color:#fff;
}
​
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console