Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <article class="entry">
  <div class="entry-cr">
    <a class="entry-link" href="#">
      <h1 class="entry-title">The Erasherheads Live in London</h1>
      <p class="entry-author">by Julie Tearjerky</p>
      <p class="entry-comments" title="22 comments"><span class="comment-count">22</span> <span class="comment-label">comments</span></p>
    <img class="entry-cover-image" src="" alt="Eraserheads in London" width="640" height="478" />


                /* The entry box */
.entry-cr {
  position: relative;
  width: 480px;
  height: 320px;
  font-family: sans-serif;
  /* The background image */
  background-image: url( );
  background-size: cover;
  background-position: center center;
  overflow: hidden;

/* Making the whole box link active */
.entry-link {
  position: relative;
  display: block;
  padding: 16px;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  z-index: 2;
  box-sizing: border-box;

/* The article title */
.entry-title {
  margin: auto;
  margin-bottom: 16px;
  font-family: Georgia;
  font-weight: normal;

/* The author name */
.entry-author {
  float: left;
  margin: auto;
  padding: 4px 0;
  font-size: 14px;

/* The comments */
.entry-comments {
  float: right;
  margin: auto;

.comment-count {
  display: inline-block;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
  color: #222;
  background-color: yellow;
  vertical-align: middle;
.comment-label {
  display: none;

/* Creating the background cover image via pseudo-element */
.entry-cr:after {
  content: '';
  position: absolute;
  top: 0;
  left; 0;
  width: 100%;
  height: 100%;
  background: #4a762e;
  /* The gradient */
  background: -moz-linear-gradient(-45deg,  #4a762e 0%, #2f7881 50%, #69318d 100%);
  background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#4a762e), color-stop(50%,#2f7881), color-stop(100%,#69318d));
  background: -webkit-linear-gradient(-45deg,  #4a762e 0%,#2f7881 50%,#69318d 100%);
  background: -o-linear-gradient(-45deg,  #4a762e 0%,#2f7881 50%,#69318d 100%);
  background: -ms-linear-gradient(-45deg,  #4a762e 0%,#2f7881 50%,#69318d 100%);
  background: linear-gradient(135deg,  #4a762e 0%,#2f7881 50%,#69318d 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4a762e', endColorstr='#69318d',GradientType=1 );
  /* The inner-shadow */
  box-shadow: 0 0 32px hsla(0, 0%, 0%, .15) inset;
  opacity: .85;
  transition: opacity .25s ease;
  z-index: 1;

.entry-cr:hover:after {
  opacity: .75;

/* Hiding the cover image <img> */
/* This is for fallback purposes. Without CSS, the image <img> will appear */
.entry-cover-image {
  display: none;