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

              
                <!-- this is the markup, keep your hands off! -->
<form>
  <label for="email">Subscribe to our mailing list</label>
  <input type="email" value="" name="email" placeholder="email address" required>
  <input type="submit" value="Subscribe" name="subscribe">
</form>
              
            
!

CSS

              
                <!-- this is the styles panel, knock yourself out! --> 

* {
    margin:0;
    padding:0;
}
form {
    width:300px;
    height:200px;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    padding:10px;
    overflow:hidden;
    font-family:arial;
    text-align:center;
}
form:before {
    content:'';
    width:20px;
    height:200%;
    top:0;
    left:0;
    position:absolute;
    background:#CD1F06;
    box-shadow:30px 0px 0px 0px #35A5EF, 60px 0px 0px 0px #CD1F06, 90px 0px 0px 1px #35A5EF, 120px 0px 0px 1px #CD1F06, 150px 0px 0px 1px #35A5EF, 180px 0px 0px 0px #CD1F06, 210px 0px 0px 1px #35A5EF, 240px 0px 0px 0px #CD1F06, 270px 0px 0px 1px #35A5EF, 300px 0px 0px 0px #CD1F06, 330px 0px 0px 1px #35A5EF, 360px 0px 0px 0px #CD1F06, 390px 0px 0px 1px #35A5EF, 420px 0px 0px 0px #CD1F06, 450px 0px 0px 1px #35A5EF;
    transform: rotate(45deg) translate(-1050%, -40%);
    z-index:-1;
}
form:after {
    content:'';
    background:white;
    position:absolute;
    top:14px;
    right:14px;
    bottom:14px;
    left:14px;
    z-index:-1;
}
form input[type="email"] {
    border:1px solid grey;
    outline:0;
    height:30px;
    padding:6px;
    box-sizing:border-box;
    text-transform:capitalize;
    margin:0;
}
form input[type="submit"] {
    margin:0;
    height:30px;
    border:0;
    background:lightgrey;
    padding:0 15px;
}
form label {
    color:#35A5EF;
    font-size:20px;
    margin:80px 0 30px 0;
    display:block;
    position:relative;
}
form label:before {
    content:"";
    width: 60px;
    height: 60px;
 background:url('https://cdn0.iconfinder.com/data/icons/ikooni-outline-free-basic/128/free-06-128.png') no-repeat;
    background-size:100% auto;
    position: absolute;
    top: -260%;
    left: 50%;
    margin-left: -30px;
}
              
            
!

JS

              
                
              
            
!
999px

Console