cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

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

Console