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.

              <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 ..................