cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <header class="header">
  <h1 class="header__title">A Guide to Hero Images: Image Tag</h1>
  <a href="http://praliedutzel.com/a-guide-to-hero-images/" target="_blank">Read the Article</a>

<section class="hero">
  <img src="http://placehold.it/500x300" alt="Hero Images with Image Tags" class="hero__media">
  <div class="hero__content">
    <h2>Hero Images</h2>
    <p>Can be created with an image tag when they support the content.</p>
              .hero {
  background-color: #fff;
  position: relative;

.hero__media { width: 100%; }

.hero__content {
  top: 50%;
  padding: 3rem;
  position: absolute;
  transform: translateY(-50%);
  text-align: left;

// The code below this point is used for styling the demo
@at-root {
  body {
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", Helvetica Neue, Helvetica, Arial, sans-serif;
    text-align: center;

  .header {
    background-color: #232439;
    padding: 4rem 2rem;
    text-align: center;
    a {
      margin-top: 1rem;
      display: block;
      color: #6ddce5;
      font-size: 0.85rem;
      text-decoration: none;

  .header__title {
    margin: 0;
    color: #fff;
    font-weight: 300;
Loading ..................