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 id="wrapper">
  <div class="intro">
    <h1>Comments Concept.</h1>
    <p>I was recently re-doing my blog and when I came to developing the comments I had a really simple, yet awesome idea. Well here is a very similar example:</p>
  </div>
  <div class="comments">
    <div class="initial">
      <img src="http://1.gravatar.com/avatar/d4d75d08a650fe2db8cc1cf8bddef041?s=44&d=retro&r=G" alt="Rob" />
      <span>Rob Salaman</span>
      <span>November 20th 2012</span>
      <p>Oh wow that's so cool! I don't understand why the pig didn't just kick the wolf though!</p>
    </div>
    <div class="reply">
      <img src="http://0.gravatar.com/avatar/?d=retro&s=44" alt="James" />
      <span>James</span>
      <span>November 20th 2012</span>
      <p>Because the wolf has a kick-ass lawyer! :P</p>
    </div>
    <div class="initial">
      <img src="http://0.gravatar.com/avatar/?d=retro&s=44" alt="Bob" />
      <span>Uncle Left</span>
      <span>November 20th 2012</span>
      <p>Yeah I totally agree with this whole thing, but I don't see why the wolf needed to ruin their houses?</p>
    </div>
  </div>
  <div class="outro">
    Original idea from my rls.co blog.
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Share+Tech);
body { background: #eee; font-size: 1.5em; font-family: 'Share Tech'; }

#wrapper { width: 800px; text-align: center; margin: 0 auto; }
#wrapper .intro { text-align: left; width: 100%; float: left; }
#wrapper .intro h1 { color: #555; margin: 50px 0 0 0; }
#wrapper .intro p { color: #777; line-height: 1.7em; position: relative; top: -15px; }

#wrapper .comments { width: 800px; float: left; text-align: left; color: #666; }
#wrapper .comments .initial { width: 750px; float: left; padding: 15px; border: 10px solid #ddd; background: #fff; -moz-box-shadow: 0px 0px 7px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 0px 7px rgba(0,0,0,0.5); box-shadow: 0px 0px 7px rgba(0,0,0,0.5); -moz-transition: 0.3s linear; -webkit-transition: 0.3s linear; }
#wrapper .comments .initial:hover { border: 10px solid rgba(255,127,0,0.5); box-shadow: 0px 0px 9px rgba(255,127,0,0.7); background: #f0f0f0; -moz-transform: scale(1.1); -webkit-transform: scale(1.1); }
#wrapper .comments .initial img { float: left; margin: 0 0; }
#wrapper .comments .initial span { margin: 10px 15px; float: left; }
#wrapper .comments .initial p { width: 100%; float: left; line-height: 1.7em; }

#wrapper .comments .reply { width: 640px; float: left; margin: -30px 10px 25px 100px; padding: 15px; border: 10px solid #ff664a; background: #f7f7f7; -moz-box-shadow: 0px 0px 7px rgba(0,0,0,0.5); -webkit-box-shadow: 0px 0px 7px rgba(0,0,0,0.5); box-shadow: 0px 0px 7px rgba(0,0,0,0.5);  -moz-transition: 0.3s linear; -webkit-transition: 0.3s linear; }
#wrapper .comments .reply:hover { border: 10px solid rgba(255,127,0,0.5); box-shadow: 0px 0px 9px rgba(255,127,0,0.7); background: #ddd; -moz-transform: scale(1.1); -webkit-transform: scale(1.1); }
#wrapper .comments .reply img { float: left; margin: 0 0; }
#wrapper .comments .reply span { margin: 10px 15px; float: left; }
#wrapper .comments .reply p { width: 100%; float: left; line-height: 1.7em; }

#wrapper .outro { width: 100%; float: left; text-align: left; margin: 25px 0 50px 0; padding: 25px 0 0 0; border-top: 3px solid #ff664a; color: #777; }
              
            
!

JS

              
                
              
            
!
999px

Console