cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <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
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