Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                  
<h2>position: static;</h2>
    <div class="content-page">
      <div class="static">This div element has position: static;</div>
      <div>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum est
        repellendus cumque culpa eum? Nesciunt, similique iste, quaerat beatae
        nisi ea error vitae sint, adipisci repellendus quas alias porro. Sint
        dolore, error placeat voluptatum modi et voluptatem molestias est
        aspernatur quidem dolorem eaque qui? Ea ipsa laudantium voluptas
        incidunt? Culpa!
      </div>
      <div>
        Lorem ipsum dolor sit amet consectetur, adipisicing elit. Impedit, ullam
        culpa a amet velit blanditiis consectetur officiis rem debitis minima
        consequuntur, iste iusto quam ex odio iure fugiat accusamus? Quia
        repellendus officia unde, id ullam autem non, repudiandae reprehenderit
        voluptatibus adipisci eveniet hic a, veniam minus deserunt doloremque at
        iusto!
      </div>
      <div>
        Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dicta
        voluptatibus consectetur doloremque soluta veritatis, cupiditate
        obcaecati? Quisquam ex vitae ullam quis ut nam, quibusdam impedit
        aliquid ad dolorem amet! Recusandae nemo non officia nam a, dignissimos
        similique fugiat. Ullam minima autem asperiores assumenda. Quia aut
        beatae cupiditate adipisci voluptate sed?
      </div>
      <div>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum est
        repellendus cumque culpa eum? Nesciunt, similique iste, quaerat beatae
        nisi ea error vitae sint, adipisci repellendus quas alias porro. Sint
        dolore, error placeat voluptatum modi et voluptatem molestias est
        aspernatur quidem dolorem eaque qui? Ea ipsa laudantium voluptas
        incidunt? Culpa!
      </div>
     
     
    </div>
              
            
!

CSS

              
                
.content-page{
  margin-bottom: 500px;  
}

.static{
    position: static;
    border: 2px solid black;
    background-color:black;
    color:white;
}
              
            
!

JS

              
                
              
            
!
999px

Console