Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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">
  <div class="row">
    <div class="col-md-12">

      <div class="pricing-table">
        
          
        <div class="pricing-table-col">
          <h3 class="pricing-table-title">Basic Plan</h3>
          <div class="pricing-table-price">
            <span class="currency">$</span>
            <span class="price">125</span>
            <span class="terms">/mo</span>
          </div>
          <div class="pricing-table-description">
          Learn projects with access to 1000+ videos
Practice live with our Code Challenge Engine
Get help in our members-only forums
          </div>
          <div class="action">
          <a href="" class="btn btn-lg btn-success">Sign Up Now</a>
          </div>
        </div><!--
        
        --><div class="pricing-table-col highlight">
          <h3 class="pricing-table-title">Basic Plan</h3>
          <div class="pricing-table-price">
            <span class="currency">$</span>
            <span class="price">125</span>
            <span class="terms">/mo</span>
          </div>
          <div class="pricing-table-description">
          Learn projects with access to 1000+ videos
Practice live with our Code Challenge Engine
Get help in our members-only forums
          </div>
          <div class="action">
          <a href="" class="btn btn-lg btn-success">Sign Up Now</a>
          </div>
        </div><div class="pricing-table-col">
          <h3 class="pricing-table-title">Basic Plan</h3>
          <div class="pricing-table-price">
            <span class="currency">$</span>
            <span class="price">125</span>
            <span class="terms">/mo</span>
          </div>
          <div class="pricing-table-description">
          Learn projects with access to 1000+ videos
Practice live with our Code Challenge Engine
Get help in our members-only forums
          </div>
          <div class="action">
          <a href="" class="btn btn-lg btn-success">Sign Up Now</a>
          </div>
        </div>
    
        
        
      </div>


    </div>
  </div>
</div>
              
            
!

CSS

              
                $color0: #ffffff;
$color1: #ffc000;
$color2: #575756;
$color3: #222222;
$color4: #eeeeee;
$color5: #cacaca;
$color6: #cccccc;

$default-title-color: #222222;
$default-content-color: #575756;
$link-color: $color1;
$button-radius: 3px;
$form-radius: 3px;
$scale1200: 87.5;

body{
  margin-top: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: $default-content-color;
}

/*
---------------------------------------------
*/
.pricing-table{
  text-align: center;
  
  .pricing-table-col{
    border-radius: 6px;
    margin-top: 20px;
    vertical-align: top;
    min-height: 400px;
    width: 380px;
    border: 2px solid $color1;
    display: inline-block;
    padding: 20px 20px 40px 20px;
    transition: all 0.2s ease-out;
  
  +.pricing-table-col{
    margin-left: -2px;
    }
        
    .pricing-table-title{
      font-size: 20px;
      font-weight: 600;
      margin: 40px auto 60px auto;
    }
        
    .pricing-table-price{
      color: $color1;
      margin: 30px auto;
      line-height: 28px;
  
      
      .currency{
        vertical-align: top;
        font-size: 24px;
       
      }
      
      .price{
        font-size: 100px;
        font-weight: bold;
      }
      
      .terms{
        font-size: 24px;
      }
    }
    
    .pricing-table-description{
      margin: 40px 0;
    }
    
    &.highlight{
      padding: 40px 20px 60px 20px;
      margin-top: 0;
      background-color: $color1;
      color: $default-title-color;
      .pricing-table-price{color: $color0;}
      
    }
}
  
}



/* Large devices (desktops, 1200px and up)*/
//////////////////////////////////////////////////////////////////////////
@media (max-width: 1200px) {
  .pricing-table{
    font-size: 16px / 100 * $scale1200;
  
  .pricing-table-col{
    //border-radius: 6px;
    margin-top: 20px / 100 * $scale1200;
    vertical-align: top;
    //min-height: 380px;
    width: 313px;
   // border: 2px solid $color1;
    //display: inline-block;
    padding: 10px 20px 40px 20px;
  
  +.pricing-table-col{
    margin-left: -2px;
    }
        
    .pricing-table-title{
      font-size: 20px / 100 * $scale1200;
      font-weight: 600;
      margin: 40px auto 60px auto;
    }
        
    .pricing-table-price{
      color: $color1;
      margin: 30px auto;
      line-height: 28px;
  
      
      .currency{
        vertical-align: top;
        font-size: 24px / 100 * $scale1200;
       
      }
      
      .price{
        font-size: 100px / 100 * $scale1200;
        font-weight: bold;
      }
      
      .terms{
        font-size: 24px / 100 * $scale1200;
      }
    }
    
    .pricing-table-description{
      margin: 40px 0;
    }
    
    &.highlight{
      padding: 30px 20px 60px 20px;
        margin-top: 0;
      background-color: $color1;
      color: $default-title-color;
      .pricing-table-price{color: $color0;}
      
    }
}
  
}
}

/* Medium devices (desktops, 992px and down) */
//////////////////////////////////////////////////////////////////////////
@media (max-width: 992px) {
  .pricing-table{
  
  .pricing-table-col{
    display: block;
    margin: 0 auto 20px;
    width: 80%;
    +.pricing-table-col{
    margin-left: auto;
    }
        
    }
  }
}

/* Small devices (768px and down) */
//////////////////////////////////////////////////////////////////////////
@media (max-width: 768px) {
  
}

/* Extra Small devices (480px and down) */
//////////////////////////////////////////////////////////////////////////
@media (max-width: 480px) {
  
}
              
            
!

JS

              
                $(".pricing-table-col").on("mouseover", function () {
  
  var animation = 'swing';
  
   $(".pricing-table-col").removeClass("highlight");
   $(".pricing-table-col .action").removeClass("animated "+animation);
   $(this).addClass("highlight")
   $(this).find(".action").addClass("animated "+animation);
});
              
            
!
999px

Console