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

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

              
                <div class="site-content">
  <h1>Awesome post title</h1>
  <h2>Cute subtitle for your blog content</h2>
  <p>DIY film table camera voodoo god dome skyscraper human tiger-team sub-orbital range-rover papier-mache boy pre-rain. Render-farm ablative sentient jeans dolphin paranoid meta-claymore mine franchise tank-traps pen marketing 3D-printed tower cardboard futurity. Sign pistol knife Tokyo warehouse footage office motion lights denim silent cartel hacker table decay bomb. Shrine vehicle range-rover carbon woman geodesic chrome semiotics rain camera BASE jump render-farm cyber-tower. Construct meta-katana narrative fetishism render-farm rain. Tanto car pre-shoes jeans knife boat. Digital long-chain hydrocarbons franchise soul-delay industrial grade voodoo god receding knife dome garage Tokyo cyber-refrigerator disposable. Cardboard ablative sub-orbital futurity boy monofilament smart-knife Chiba denim meta-human DIY soul-delay beef noodles concrete.</p>
  <p>3D-printed pistol euro-pop silent corrupted into DIY Chiba. Neon savant lights dead crypto-claymore mine market jeans media dome. Knife digital order-flow tower decay neon BASE jump semiotics dead A.I. meta-Tokyo weathered youtube. Franchise disposable industrial grade skyscraper bomb shanty town girl shoes claymore mine augmented reality tube singularity math-wristwatch fetishism. Boat modem advert narrative lights euro-pop wonton soup towards uplink assassin-space dead faded singularity fetishism 8-bit rain.</p>
  <!-- Share Widget Starts Here -->
  <div class="ssbats-social-share">
    <span class="ssbats-social-share-label">Share on:</span>
    <div class="ssbats-social-share-buttons">
      <a href="https://www.facebook.com/sharer/sharer.php?u=URL_HERE" class="ssbats-share-facebook ssbats-share-popup"><span>facebook</span></a>
      <a href="https://www.twitter.com/intent/tweet?url=URL_HERE&via=i_Genius" class="ssbats-share-twitter ssbats-share-popup"><span>twitter</span></a>
      <a href="https://www.linkedin.com/shareArticle?mini=true&url=URL_HERE" class="ssbats-share-linkedin ssbats-share-popup"><span>linkedin</span></a>
      <a href="https://www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-custom="true" class="ssbats-share-pinterest"><span>pinterest</span></a>
       <a href="https://tumblr.com/widgets/share/tool?canonicalUrl=URL_HERE" class="ssbats-share-tumblr ssbats-share-popup"><span>tumblr</span></a>
      <a href="https://www.reddit.com/submit?url=URL_HERE" class="ssbats-share-reddit ssbats-share-popup"><span>reddit</span></a>
      <a href="https://api.whatsapp.com/send?text=URL_HERE" class="ssbats-share-whatsapp"><span>whatsapp</span></a>
      <a href="https://telegram.me/share/url?url=URL_HERE" class="ssbats-share-telegram ssbats-share-popup"><span>telegram</span></a>
      <a href="https://getpocket.com/save?url=URL_HERE" class="ssbats-share-pocket ssbats-share-popup"><span>pocket</span></a>
    </div>
  </div>
  <!-- Share Widget Ends Here -->
</div>
<!-- Pinterest share button script -->
<script async defer src="//assets.pinterest.com/js/pinit.js"></script>
              
            
!

CSS

              
                /* Page elements */

html { height: 100%; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #333333;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  min-height: 100%;
  margin: 0;
}

.site-content {
  max-width: 1040px;
  padding: 40px;
  text-align: justify;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 10px 0 5px;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #999999;
}

/* Social share widget */

.ssbats-social-share {
  display: flex;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.ssbats-social-share-label {
  margin-right: 14px;
  font-weight: 700;
}

.ssbats-social-share-buttons a {
  display: inline-block;
  color: #333333;
  background-color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid #999999;
  padding: 2px 10px;
  border-radius: 4px;
  margin: 5px 5px 5px 0;
  cursor: pointer;
  box-shadow: 1px 1px 2px rgba(0,0,0,.25);
  transition: 150ms ease-in-out;
}

.ssbats-social-share-buttons a span:before {
  content: '';
  width: 14px;
  height: 14px;
  display: inline-block;
  font-weight: 400;
  margin-right: 5px;
  margin-bottom: -1px;
  background-repeat: none;
  filter: invert(100%) brightness(20%);
  transition: 150ms ease-in-out;
}

.ssbats-social-share-buttons a.ssbats-share-facebook span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/facebook.svg');
}

.ssbats-social-share-buttons a.ssbats-share-twitter span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/twitter.svg');
}

.ssbats-social-share-buttons a.ssbats-share-linkedin span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/linkedin.svg');
}

.ssbats-social-share-buttons a.ssbats-share-pinterest span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/pinterest.svg');
}

.ssbats-social-share-buttons a.ssbats-share-tumblr span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/tumblr.svg');
}

.ssbats-social-share-buttons a.ssbats-share-reddit span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/reddit.svg');
}

.ssbats-social-share-buttons a.ssbats-share-whatsapp span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/whatsapp.svg');
}

.ssbats-social-share-buttons a.ssbats-share-telegram span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/telegram.svg');
}

.ssbats-social-share-buttons a.ssbats-share-pocket span:before {
  background-image: url('https://unpkg.com/[email protected]/icons/pocket.svg');
}

/* Social share widget hover state */

.ssbats-social-share-buttons a:hover {
  background-color: #333333;
  color: #ffffff;
  box-shadow: 0 0 6px rgba(0,0,0,.5);
}

.ssbats-social-share-buttons a:hover span:before {
  filter: invert(100%);
}

.ssbats-social-share-buttons a.ssbats-share-facebook:hover {
  background-color: #1877f2;
  border-color: #1877f2;
}

.ssbats-social-share-buttons a.ssbats-share-twitter:hover {
  background-color: #1da1f2;
  border-color: #1da1f2;
}

.ssbats-social-share-buttons a.ssbats-share-linkedin:hover {
  background-color: #0077b5;
  border-color: #0077b5;
}

.ssbats-social-share-buttons a.ssbats-share-pinterest:hover {
  background-color: #bd081c;
  border-color: #bd081c;
}

.ssbats-social-share-buttons a.ssbats-share-tumblr:hover {
  background-color: #36465d;
  border-color: #36465d;
}

.ssbats-social-share-buttons a.ssbats-share-reddit:hover {
  background-color: #ff4500;
  border-color: #ff4500;
}

.ssbats-social-share-buttons a.ssbats-share-whatsapp:hover {
  background-color: #25d366;
  border-color: #25d366;
}

.ssbats-social-share-buttons a.ssbats-share-telegram:hover {
  background-color: #2ca5e0;
  border-color: #2ca5e0;
}

.ssbats-social-share-buttons a.ssbats-share-pocket:hover {
  background-color: #ef3f56;
  border-color: #ef3f56;
}
              
            
!

JS

              
                document.querySelectorAll('.ssbats-share-popup').forEach( item =>
      item.addEventListener('click', (event) => {
      var window_size = "width=530,height=400";
      var social = item.href.split("/")[2];
      switch(social) {
          case "www.facebook.com":
              window_size = "width=530,height=640";
              break;
          case "www.twitter.com":
              window_size = "width=585,height=261";
              break;
          case "www.linkedin.com":
              window_size = "width=585,height=600";
              break;
          case "tumblr.com":
              window_size = "width=540,height=600";
              break;
          case "www.reddit.com":
              window_size = "width=600,height=600";
              break;
      }
      window.open(item.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,' + window_size);
      event.preventDefault();
      return false;
}));

document.querySelectorAll('.ssbats-social-share a').forEach( item => {
    item.href = item.href.replace( "URL_HERE", document.URL);
});
              
            
!
999px

Console