Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="container">
  
  <!--   Cleveland Browns -->
  <section class="romo-img romo-browns" data-type="slider-item">
  <div class="romo-content">
      <h2>Cleveland Browns</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
  <!--   Denver Broncos -->
  <section class="romo-img romo-broncos" data-type="slider-item">
  <div class="romo-content">
      <h2>Denver Broncos</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
  <!--   Houston Texans -->
  <section class="romo-img romo-texans" data-type="slider-item">
  <div class="romo-content">
      <h2>Houston Texans</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
  <!--   Kansas City Chiefs -->
  <section class="romo-img romo-chiefs" data-type="slider-item">
  <div class="romo-content">
      <h2>Kansas City Chiefs</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
  <!--   New York Jets -->
  <section class="romo-img romo-jets" data-type="slider-item">
  <div class="romo-content">
      <h2>New York Jets</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
  <!--   San Francisco 49ers -->
  <section class="romo-img romo-niners" data-type="slider-item">
  <div class="romo-content">
      <h2>San Francisco 49ers</h2>
      <h3>Why it works</h3>
      <p>Lorem ipsum dolor sit amet, nostrud scaevola aliquando cu sea, per et duis quodsi utamur. Ea eripuit dolorum instructior mea, te munere appetere sea, cum ut mentitum praesent iracundia. In vim accusam accumsan, ea nam assum reformidans. Duo at quaeque argumentum.</p>
      <h3>Why it doesn't work</h3>
      <p>Novum alterum adversarium eu quo. Eros mandamus percipitur per ex, in qui vivendo vivendum, summo admodum eos eu. Sea in movet populo necessitatibus, ne eos utinam audiam viderer. Et prima instructior definitionem mei, nec tantas percipit in. Mel libris quidam ad, mel ferri regione insolens cu, labore labores principes his no.</p>
      <h3>Likelihood</h3>
    </div>
  </section>
  
</div>
              
            
!

CSS

              
                html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-size: 100%;
}

.container {
  bcakground: 0;
  display: block;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  width: auto;
  z-index: 1;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  font-size: 16px;
  line-height: 24px;
}

section {
  background-color: #fff;
  clear: both;
  display: block;
}

.romo-img {
  position: relative;
  padding: 0 8% 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  
  .romo-content {
    
    h2 {
      font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
      text-transform: none;
      letter-spacing: 0;
      font-size: 40px;
      line-height: .9;
      margin-bottom: 15px;
      width: auto;
    }

    h3 {
      display: block;
      color: red;
      font-family: 'Proxima Nova', Helvetica, Arial, sans-serif;
      font-size: 16px;
      margin: 0;
      width: auto;
    }
  }
}

@media only screen and (min-width: 768px) {
  .romo-img {
    height: 100vh;
    padding: 0;
    background-attachment: fixed;
  
    .romo-content {
      position: relative;
      top: 50%;
      left: 50%;
      bottom: auto;
      padding: 2% 0;
      transform: translateY(-50%);
      width: 35%;
      right: 5%;
      font-family: Georgia, "Times New Roman", Times, serif;
    }
  }
  
  .romo-buffalo {
    background-image: url(https://s25.postimg.org/jn5bshh9b/buffalo_bills.jpg);
  }

  .romo-bears {
    background-image: url(https://s25.postimg.org/miiezcl9b/chicago_bears.jpg);
  }

  .romo-browns {
    background-image: url(http://a2.espncdn.com/i/infographics/20170201_romo/03romo_cleveland_d.jpg);
  }

  .romo-cowboys {
    background-image: url(https://s25.postimg.org/avyay7xy7/dallas_cowboys.jpg);
  }

  .romo-broncos {
    background-image: url(http://a2.espncdn.com/i/infographics/20170201_romo/05romo_denver_d.jpg);
  }

  .romo-texans {
    background-image: url(http://a1.espncdn.com/i/infographics/20170201_romo/06romo_houston_d.jpg);
  }

  .romo-chiefs {
    background-image: url(http://a2.espncdn.com/i/infographics/20170201_romo/07romo_kansascity_d.jpg);
  }

  .romo-jets {
    background-image: url(http://a2.espncdn.com/i/infographics/20170201_romo/08romo_nyjets_d.jpg);
  }

  .romo-niners {
    background-image: url(http://a2.espncdn.com/i/infographics/20170201_romo/09romo_sfo_d.jpg);
  }
}

@media only screen and (max-width: 767px) {
  .romo-img .romo-content::before {
    content: "";
    display: block;
    width: 100%;
    padding: 60% 0;
    margin: 2em auto 0;
  }
  
  .romo-buffalo .romo-content::before {
    background: url(https://s25.postimg.org/jn5bshh9b/buffalo_bills.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-bears .romo-content::before {
    background: url(https://s25.postimg.org/miiezcl9b/chicago_bears.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-browns .romo-content::before {
    background: url(https://s25.postimg.org/k2glli36n/cleveland_browns.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-cowboys .romo-content::before {
    background: url(https://s25.postimg.org/avyay7xy7/dallas_cowboys.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-broncos .romo-content::before {
    background: url(https://s25.postimg.org/xyotxdzfj/denver_broncos.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-texans .romo-content::before {
    background: url(https://s25.postimg.org/i1q20o71b/houston_texans.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-chiefs .romo-content::before {
    background: url(https://s25.postimg.org/6197dop0f/kansascity_chiefs.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-jets .romo-content::before {
    background: url(https://s25.postimg.org/lo0gr22sf/ny_jets.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }

  .romo-niners .romo-content::before {
    background: url(https://s25.postimg.org/ka8tvr3j3/sf_niners.jpg) no-repeat;
    background-size: cover;
    display: block;
    margin-bottom: 30px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console