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

              
                <section id="main">
  
  <header>
    <h1>title</h1>
    
    <section id="article-info">
      <h2 id="article-title">Article title</h2>
      <h3 id="article-description">Short description</h3>
    </section>
    
  </header>
 
  <h4>title</h4>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a interdum dolor. Praesent fermentum ligula massa, nec elementum neque vestibulum ac. Vivamus tincidunt neque sit amet ante pretium ornare. Proin posuere mauris sapien, venenatis commodo eros euismod in. Duis venenatis magna sit amet eros ornare, id ultricies nisl sollicitudin. Aenean in nulla sed massa eleifend vestibulum. Phasellus tristique est ac metus rhoncus, laoreet semper urna mattis. Integer bibendum vehicula accumsan.
   
  </p>

  <h4>title</h4>
  <p>
  
Cras metus tellus, facilisis a luctus eu, semper vel nisi. Morbi eget viverra diam. Nunc in mauris semper, vehicula ligula vitae, mollis libero. Maecenas malesuada quam vitae diam ullamcorper consequat. Ut ornare mauris at quam feugiat, vel porta risus congue. Vivamus feugiat mollis erat eu mattis. Nam a consectetur lorem. Mauris vitae lacinia ligula, ac faucibus turpis. Duis a orci blandit, euismod tellus quis, eleifend magna. Integer ornare urna sed aliquam luctus. Sed ut mollis tellus. Curabitur quis elementum sem. Nunc at sapien vel purus tristique varius vitae quis lorem. Aliquam nisl tellus, volutpat sed varius a, condimentum in risus. In semper quam et tellus tincidunt, sit amet faucibus quam vehicula.
</p>
   
    <p>
Suspendisse potenti. Sed quis arcu tincidunt, hendrerit leo sodales, iaculis erat. Vivamus consectetur vulputate nulla, nec sodales lacus scelerisque vitae. Praesent rutrum feugiat tincidunt. Morbi lacus massa, fermentum eu faucibus sodales, fermentum ut nisl.
</p>
  <h4>title</h4>
 <p>     
      
In sapien urna, laoreet et vestibulum non, consequat quis orci. Ut in nibh cursus, pulvinar nisl vitae, eleifend nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed pharetra blandit dui, sit amet congue velit condimentum id. Vivamus blandit sem ac massa sollicitudin varius. Phasellus congue, augue eget gravida adipiscing, felis mauris faucibus ipsum, ut pretium justo sapien hendrerit eros. Quisque accumsan rutrum odio nec laoreet. Quisque id venenatis massa, quis tristique justo. Donec porttitor viverra augue, nec porttitor nulla lacinia sit amet. Vivamus non turpis porttitor, egestas lacus ac, iaculis nisl. Aliquam id sollicitudin nisl. Integer vel sapien vitae libero eleifend lobortis id sit amet mi. Nunc nulla augue, rutrum a pellentesque consectetur, commodo et ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed interdum consequat leo, in molestie elit pulvinar eu.
</p>
  <h4>title</h4>
 <p>  
   
   
Aliquam erat volutpat. Proin eu pharetra augue. Nullam non risus a mi porttitor tempor. Phasellus et fermentum justo. Curabitur ornare elit ac metus placerat, quis elementum odio luctus. Donec fringilla justo a mollis mollis. Nunc ut ullamcorper augue, sit amet ornare nibh. Praesent augue arcu, iaculis dapibus viverra vitae, mollis et diam. Nulla a lobortis odio, ac luctus neque.
  </p>
  
</section>
              
            
!

CSS

              
                @import "nib"

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

body
  background #1e1e1e

#main
  background #fff
  box-shadow 0 0 20px 12px rgba(0, 0, 0, 0.2)
  -o- box-shadow 0 0 20px 12px rgba(0, 0, 0, 0.2)
  -webkit- box-shadow 0 0 20px 12px rgba(0, 0, 0, 0.2)
  -moz- box-shadow 0 0 20px 12px rgba(0, 0, 0, 0.2)
  width 960px
  padding 0px 0px 40px 0px
  margin 20px auto

header
  width 100%
  height 300px
  background url('https://i.imgur.com/B2X2HSe.png')

#article-info

  position relative
  background rgba(0,0,0,0.75)
  z-index 2
  padding 15px 0px 15px 0px
  min-height 30px

#article-title
  line-height 30px
  font-size 28px
  margin-bottom 10px
  width 600px
  font 23px "Roboto", sans-serif
  margin auto
  color #fff

#article-description
  color rgba(255,255,255,0.75)
  font-size 14px
  width 600px
  font 12px "Helvetica Neue",Helvetica,Arial,sans-serif
  margin auto
  line-height 20px

h1
  width 100%
  background-color rgba(0,0,0,0.0)
  text-align center
  line-height 220px
  color #0b914f
  font-family 'Ubuntu', sans-serif
  font-size 4em
  text-transform uppercase

h4
  font-family 'Ubuntu', sans-serif
  font-size 20px
  padding 25px 0px 5px 0px
  text-transform capitalize
  color #46d28e
  width 600px
  margin auto


p
  width 600px
  padding 5px 0px 10px 0px
  margin auto
  font-size 14px
  line-height 20px
  font-family 'Roboto', sans-serif
  color #222

@media only screen and (max-width 960px)
  #main
    width 100%
    margin 0px auto
  
@media only screen and (max-width 768px)

  p
    width 80%
  
  h4
    width 80%
  
  #article-title
     width 80%
  
  #article-description
     width 80%
              
            
!

JS

              
                
              
            
!
999px

Console