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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                .container
  h1.brand.ta-c 
    span Acme 
    | Web Design
  .wrapper
    .company-info.ta-c
      h3 Contact Info
      ul
        li 44 Something st
        li (555) 555 55 05
        li test@acme.test
    .contact
      h3 Send Us a Message
      form(action="")
        p
          label(for="name") Name
          input(type="text", id="name", name="name")
        p
          label(for="company") Company
          input(type="text", id="company", name="company ")
        p
          label(for="email") Email Address
          input(type="email", id="email", name="email")
        p
          label(for="phone") Phone number
          input(type="tel", id="phone", name="phone ")
        p.full
          label(for="message") Message
          textarea(id="message", name="message", rows="5")
        p.full
          button Submit
              
            
!

CSS

              
                padding = 1rem
bgColor = lightblue
bgColorLight = powderblue
accentColor = tomato
textColor = steelblue
colorInverse = cornsilk
containerWidth = 73rem
grid-gap = 1.5rem
minw = 43rem

*
  box-sizing border-box
  
body
  background bgColor
  color textColor
  line-height 1.5
  font-family "Segoe UI", Tahoma, Geneva, Verdana, sans-serif
  padding padding
.container
  max-width containerWidth
  margin auto
  padding padding
ul
  padding 0
  list-style none
.brand
  span
    color colorInverse
    
.wrapper
  box-shadow 0 0 .8rem textColor
  & > *
    padding padding
    
.company-info
  background bgColorLight
  
.ta-c
  text-align center
  
.contact
  background colorInverse
  
/* FORM STYLES */
.contact
  form
    display grid
    grid-template-columns 1fr 1fr
    grid-gap grid-gap
  label
    display block
  p
    margin 0
  input
  button
  textarea
    width 100%
    padding padding
    border 1px solid bgColor
  button
    background accentColor
    text-transform uppercase
    border 0
    color colorInverse
    font-size 1.5rem
    transition background .2s
    &:hover
    &:focus
      background darken(accentColor, 10%)
      cursor pointer
      outline 0
    
.full
  grid-column 1 / 3
  
/* LARGE SCREENS */
@media (min-width minw)
  .wrapper
    display grid
    grid-template-columns 1fr 2fr
  .company-info
    ul
    h3
    .brand
      text-align left
              
            
!

JS

              
                
              
            
!
999px

Console