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

              
                <div>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</div>
              
            
!

CSS

              
                div {
  padding-top: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
  padding-left: 50px;
}
/*This Is On H1*/
h1 {
    background-attachment: scroll;
    background-color: #fff;
    background-image: url(https://1.bp.blogspot.com/-hSWWgNO_pOs/VOToQXw_wmI/AAAAAAAABsU/SYUSJONNRQM/s1600/h3.png);
    background-position: 5px 40%;
    background-repeat: no-repeat no-repeat;
    border: 2px solid #53b800;
    border-radius: 80px 80px 80px 80px;
    box-shadow: 0 2px 5px 0 #c7c7c7;
    color: #000;
    font-size: 16pt;
    font-weight: 600;
    line-height: 20px;
    list-style: none outside none;
    margin: 13px -20px;
    outline: medium none;
    padding: 10px 10px 10px 35px;
    text-transform: capitalize;
    vertical-align: baseline;
	      display: block;
}
/*This Is On H2*/
h2{
    color: #000;
    border-left: 20px solid #f90;
    padding: 5px;
    padding-left: 20px;
    border-radius: 25px;
    box-shadow: 0px 0px 5px 0px rgb(50 50 50 / 30%);
    text-decoration: none;
}
/*This Is On H3*/
h3{
    color: #ff395e;
    padding: 5px;
    font-family: inherit;
    font-size: 14pt;
    font-weight: 600;
    line-height: 20px;
    margin-top: 5px;
    margin-bottom: 17px;
    border-bottom: 1px solid #ff9249;
}
/*This Is On H4*/
h4 {
    font-size: 18px;
    font-weight: 500px;
    color: #fff;
    background: #6DD55D;
    border-left: 0px solid #fff;
    padding: 5px;
    padding-left: 20px;
    border-radius: 0px;
    box-shadow: 0px 0px 0px 0px rgb(50 50 50 / 30%);
    text-decoration: none;
}
/*This Is On H5*/
h5 {
    color: #ffffff;
    font-weight: 400;
    background: linear-gradient(
58deg
,#834d9b,#d04ed6);
    width: auto;
    font-size: 20px;
    line-height: 1;
    margin: 10px 10px 30px 0px;
    padding: 14px;
    border-left: 10px solid #d04ed6;
    box-shadow: 4px 2px 15px 0px rgb(199 199 199);
}
/*This Is On H6*/
h6{
    color: #fff;
    border-left: 20px solid #FF0000;
    background: #000;
    padding: 5px;
    padding-left: 20px;
    border-radius: 2px;
    box-shadow: 0px 0px 5px 0px rgb(50 50 50 / 30%);
    text-decoration: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console