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

              
                <div class="wrapper">
   <div class="title">Work <small>Hard</small> Play <small>Hard</small></div>
   <div class="description">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus    odio adipisci ducimus? Impedit est dolore maxime unde repudiandae blanditiis        veritatis accusamus, in fugit excepturi optio aperiam officia eius, omnis          numquam omnis  numquam. omnis   numquam.</p>
   </div>
</div>
<div class="wrapper border-radius">
   <div class="description text-right">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus    odio adipisci ducimus? Impedit est dolore maxime unde repudiandae blanditiis        veritatis accusamus, in fugit excepturi optio aperiam officia eius, omnis          numquam omnis  numquam. omnis   numquam.</p>
   </div>
   <div class="title">Work <small>Hard</small> Play <small>Hard</small></div>
</div>
<div class="wrapper border-radius">
   <div class="title">Work <small>Hard</small> Play <small>Hard</small></div>
   <div class="description">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus    odio adipisci ducimus? Impedit est dolore maxime unde repudiandae blanditiis        veritatis accusamus, in fugit excepturi optio aperiam officia eius, omnis          numquam omnis  numquam. omnis   numquam.</p>
   </div>
</div>
              
            
!

CSS

              
                .wrapper
   width: 400px
   height: 200px
   display: table
   border: 5px solid #111
   margin: 50px auto
   padding: 20px
   position: relative
   
   &:after,&:before
      content: ''
      position: absolute
      font-family: fontAwesome
      font-size: 50px 
      color: #111
      background: #fff
      
   &:after
      content: '\f10d'
      top: 0
      left: 0
      transform: translate(-50%, -50%)
      box-shadow: 10px 10px 0 #fff
   
   &:before
      content: '\f10e'
      bottom: 0
      right: 0
      transform: translate(50%, 50%)
      box-shadow: -10px -10px 0 #fff
   
.title,.description
   display: table-cell
   width: 50%
   vertical-align: middle

.description
   font-size: 14px

.title
   font-size: 40px
   font-weight: bold
   text-align: center
   text-transform: uppercase
   padding: 0 20px 0 0
   
   small
      display: block
      font-size: 25px
      text-align: right

.border-radius
   border-radius: 30px
.text-right
   text-align: right
   
              
            
!

JS

              
                
              
            
!
999px

Console