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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

              <section class="promo">
  <div class="promo-imgWrapper _8x12">
      <img class="promo-img" src="http://sassyhtml.com/wp-content/uploads/2014/08/1060px-guide.jpg">
  <div class="promo-textWrapper _4x12">
    <div class="promo-text">
      <div class="promo-overview">
        <h3>Spring Sale</h3>
        <p>Buy our stuff. It's better than the other stuff.</p>
      <a href="" class="btn-cta">Shop</a>
              /********* Promo Banner Tutorial **********/
.promo { height: 400px; }

._4x12 { float: left; width: 33.333%; }
._8x12 { float: right; width: 66.666% }

@media (max-width: 600px) {
  ._8x12 { width: 100%; }
  ._4x12 { width: 100%; }

.promo-imgWrapper {
  height: 100%; 
  overflow: hidden; 
  position: relative; 

.promo-img {
  position: absolute; top: 0px; left: 50%;
  margin-left: -530px;

.promo-textWrapper {
  height: 100%;
  display: table; 

.promo-text {
  display: table-cell; 
  vertical-align: middle; 
  padding: 15px;

/********* Promo Banner Styles - (you can modify these) **********/
body { 
  background: #333;
  color: #bf1e2e;
  font: 1.4em Helmet, Freesans, sans-serif; 

.btn-cta { 
  background: #bf1e2e;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;

.promo {
  background: #ffffff;
  max-width: 1590px; /* arbitrary width - just make sure your image is large enough to fit the max-width size you've provided*/
  margin: 0 auto;

.promo-textWrapper {
  background: #ffffff; 
  text-align: center;

.promo-overview > h3 {
  margin-bottom: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;

.promo-overview > p { padding-bottom: 30px; }
Loading ..................