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="snip1537">
  <h1>American</h1>
  <h6>Restaurant</h6><br/>
  <h5>Est. 1977</h5><br/><i class="ion-star"></i>
</div>
<div class="snip1537">
  <h1>Nightbridge</h1>
  <h6>High School</h6><br/>
  <h5>Est. 1977</h5><br/><i class="ion-star"></i>
</div>
<div class="snip1537">
  <h1>Junction</h1>
  <h6>Riverside</h6><br/>
  <h5>Est. 1977</h5><br/><i class="ion-star"></i>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Raleway:500);
@import url(https://fonts.googleapis.com/css?family=Teko:700);
.snip1537 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  display: inline-block;
  color: #bdbdbd;
  margin: 60px 20px;
  max-width: 285px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

.snip1537 h1,
.snip1537 h5 {
  margin: 0;
  text-transform: uppercase;
}

.snip1537 h1 {
  font-family: 'Teko', Arial, sans-serif;
  font-weight: 700;
  font-size: 54px;
  padding: 0;
  text-align: center;
  margin: 0;
  line-height: 27px;
}

.snip1537 h5 {
  background-color: #bdbdbd;
  color: #212121;
  display: inline-block;
  font-size: 0.6em;
  font-weight: 700;
  line-height: 18px;
  padding: 0 20px;
  position: relative;
}

.snip1537 h5:before,
.snip1537 h5:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 2px;
  border-width: 9px 5px;
  border-style: solid;
  opacity: 0.8;
}

.snip1537 h5:before {
  right: 100%;
  border-color: #bdbdbd #bdbdbd #bdbdbd transparent;
}

.snip1537 h5:after {
  left: 100%;
  border-color: #bdbdbd transparent #bdbdbd #bdbdbd;
}

.snip1537 h6 {
  margin: 0;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
}

.snip1537 h6:before,
.snip1537 h6:after {
  position: absolute;
  height: 2px;
  content: '';
  width: 30px;
  top: 50%;
  border-top: 2px solid #bdbdbd;
  border-bottom: 2px solid #bdbdbd;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.snip1537 h6:before {
  left: -35px;
}

.snip1537 h6:after {
  right: -35px;
}

.snip1537 i {
  font-size: 22px;
  line-height: 36px;
}


/* Demo purposes only */

body {
  background-color: #212121;
  text-align: center;
}
              
            
!

JS

              
                /* Demo purposes only */
$(".hover").mouseleave(
  function() {
    $(this).removeClass("hover");
  }
);
              
            
!
999px

Console