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

              
                .container
  h1 
    | On the 
    br
    span.large Possiblity
    | of 
    span.large Sidelines
    
  h2.pinline
    span Header Pinline
  p 
    | This is a pure CSS header pinline 
    em (also known as "line-on-sides")
    | . The goal of this snippet is to use as little DOM elements as possible, not require any specific header height or font size,  and to account for any length of header text. Most other solutions I've seen have limitations. Design for this codepen blatantly ripped off from 
    a(href="http://hellohappy.org/beautiful-web-type/", target="_blank") HelloHappy
    |.
              
            
!

CSS

              
                // Aesthetic Styles (scroll for the header css)
body
  background: #e84d5b

.container
  width: 460px
  margin: 20px auto

h1
  font-family: 'Open Sans'
  font-weight: 700
  font-style: italic
  text-align: center
  margin: 0
  font-size: 2em
  
  .large
    font-weight: 800
    text-transform: uppercase
    font-style: normal
    font-size: 1.2em
p
  line-height: 1.8 em
  text-align: justify
  font-family: 'Gentium Basic'
  
a
  color: rgba(255,255,255,0.3)
  text-decoration: none

  &:hover
    color: rgba(255,255,255,1)
  
// The Pinline itself
h2.pinline
  text-align: center
  display: block
  overflow: hidden
  font-size: 1em
  font-weight: 100
  margin: 20px 0
  font-family: 'Open Sans'
  font-weight: 700
  text-transform: uppercase

  span
    position: relative
    display: inline-block
    line-height: 1

    &:before, &:after
      content: ""
      position: absolute
      top: 50%
      height: 1px
      background: #000
      width: 99999px

    &:before
      left: 100%
      margin-left: 20px

    &:after
      right: 100%
      margin-right: 20px
              
            
!

JS

              
                
              
            
!
999px

Console