css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <form action="#">
  <h2>What logging in and remembering sessions should be like.</h2>
  <p>No checkboxes, no double clicking. Use a second button like this:</p>
  <input type="email" placeholder="Your e-mail" required tabindex="1"/>
  <input type="password" placeholder="Your password" required tabindex="2"/>
  <input type="submit" value="Login" tabindex="4"/>
  <input type="submit" value="Login and remember" class="remember" tabindex="3"/>
  <p>Your session will be remembered for a month.</p>
</form>
            
          
!
            
              *
  box-sizing: border-box
  font-size: 12px

body
  background: #eee
  line-height: 1.4

form
  margin: 50px auto
  width: 500px
  padding: 50px
  
input
  color: #444
  width: 100%
  display: block
  border: 1px solid #ddd
  padding: 10px
  margin-bottom: 10px
  border-radius: 5px
    
[type=submit]
  width: 50%
  float: left
  border: 0
  padding: 15px 10px
  background: #ccc
  text-shadow: 1px 1px 0 rgba(white, 0.3)
  border-radius: 5px 0 0 5px
  box-shadow: inset 0 -2px 0 rgba(black, 0.1)
  position: relative
    
  &:focus,
  &:active
    top: 2px
    outline: 0
    box-shadow: none
    
  &:last-of-type
    border-radius: 0 5px 5px 0
  
.remember
  color: #222
  background: skyblue

h2
  font-size: 18px
  
p:last-of-type
  color: #555
  clear: both
  background: white
  border: 1px solid #ddd
  border-radius: 5px
  padding: 10px 15px
  float: right
  position: relative
    
  &:after
    content: " "
    transform: rotate(45deg)
    background: white
    border-top: 1px solid #ddd
    border-left: 1px solid #ddd
    display: block
    width: 15px
    height: 15px
    position: absolute
    top: -10px
    right: 60px
    //z-index: -1
    
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console