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

              
                <h1>GDS1 Support</h1>
<form class="cf">
  <div class="half left cf">
    <input type="text" id="input-name" placeholder="Name">
    <input type="email" id="input-email" placeholder="Email address">
    <input type="text" id="input-subject" placeholder="Subject">
  </div>
  <div class="half right cf">
    <textarea name="message" type="text" id="input-message" placeholder="Message"></textarea>
  </div>  
  <input type="submit" value="Submit" id="input-submit">
</form>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Merriweather)

$blue: #0068AE
$grey: #BBB
$white: #FFF
$red: #FF3533
$green: #67d270


*
  -moz-box-sizing: border-box
  -webkit-box-sizing: border-box
  box-sizing: border-box
  &:before, &:after
    -moz-box-sizing: border-box
    -webkit-box-sizing: border-box
    box-sizing: border-box

html, body
  background: #f1f1f1
  font-family: 'Merriweather', sans-serif
  padding: 1em

h1
  text-align: center
  color: #a8a8a8
  text-shadow: 1px 1px 0 white

form
  max-width: 600px
  text-align: center
  margin: 20px auto
  input, textarea
    border: 0
    outline: 0
    padding: 1em
    -moz-border-radius: 8px
    -webkit-border-radius: 8px
    border-radius: 8px
    display: block
    width: 100%
    margin-top: 1em
    font-family: 'Merriweather', sans-serif
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1)
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1)
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1)
    resize: none
  input:focus, textarea:focus
    -moz-box-shadow: 0 0px 2px #e74c3c !important
    -webkit-box-shadow: 0 0px 2px #e74c3c !important
    box-shadow: 0 0px 2px #e74c3c !important
  #input-submit
    color: white
    background: #e74c3c
    cursor: pointer
    &:hover
      -moz-box-shadow: 0 1px 1px 1px rgba(170, 170, 170, 0.6)
      -webkit-box-shadow: 0 1px 1px 1px rgba(170, 170, 170, 0.6)
      box-shadow: 0 1px 1px 1px rgba(170, 170, 170, 0.6)
  textarea
    height: 126px

.half
  float: left
  width: 48%
  margin-bottom: 1em

.right
  width: 50%

.left
  margin-right: 2%

@media (max-width: 480px)
  .half
    width: 100%
    float: none
    margin-bottom: 0

/* Clearfix

.cf
  &:before
    content: " "
    /* 1
    display: table
    /* 2
  &:after
    content: " "
    /* 1
    display: table
    /* 2
    clear: both
              
            
!

JS

              
                
              
            
!
999px

Console