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

              
                <!--
©Raj Rajhans
rajrajhans.com
Day #2 : 30 Days CSS
--><!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Day #2: Pricing Tables using CSS</title>
    <link rel="stylesheet" href="themestyle.css">
    <<link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=Montserrat|Poppins|Roboto" rel="stylesheet">
  </head>
  <body>
    <section>
      <h4> Design #1 : Simple Pricing Table</h4>
      <div class="table">
        <div class="block">
          <div class="header">
            <div class="heading"> Level I </div>
            <div class="price">
              <span class="currency">₹</span>
              <span class="value">300</span>
              <span class="duration">/month</span>
            </div>
          </div>
            <div class="body">
              <ul class="features">
                <li><strong>Primary </strong>Feature</li>
                <li><strong>Additional </strong>Benefit</li>
                <li><strong>1</strong> Bonus </li>
              </ul>
            </div>
            <div class-="footer">
              <a href="#" class="button">Select </a>
            </div>

        </div>
        <div class="block popular">
          <div class="header">
            <div class="heading"> Level II</div>
            <div class="price">
              <span class="currency">₹</span>
              <span class="value">600</span>
              <span class="duration">/month</span>
            </div>
          </div>

          <div class="body">
            <ul class="features">
                    <li><strong>Primary</strong> Feature</li>
                    <li><strong>Additional</strong> Benefit</li>
                    <li><strong>2</strong> Bonuses</li>
                    <li><strong>4</strong> Perks</li>
                    <li><strong>24/7</strong> Support</li>
            </ul>
          </div>
          <div class-="footer">
            <a href="#" class="button">Select </a>
          </div>
      </div>
    </div>
    </section>

    </section>
  </body>
</html>

              
            
!

CSS

              
                /*
©Raj Rajhans
rajrajhans.com
Day #2 : 30 Days CSS
*/
.table
{
  margin:60px auto;
}
.table::after
{
  display: table;
  content: "";
  clear:both;
}
.table > div {
  display: block;
  float: left;
  width: 48%;
  min-height: 1px;
  background: #fff;
  color:#555;
}

.table > div:not(:last-child)
{
  margin-right: 2%;
}

.block
{
  text-align: center;
  border-radius: 5%;
  overflow: hidden;
}

.header
{
  height: auto;
  padding: 30px 20px 40px;
  text-transform: uppercase;
}

.header .heading
{
  font-size: 1.4rem;
  font-weight: bold;
}

.price{
  color:#777;
}

.price>span{
  display: inline-block;
}

.currency{
  margin-top: 10px;
  vertical-align: top;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  opacity: 0.6;
}

.value{
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
}
.duration{
  margin-top: 10px;
  vertical-align: top;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
}
.bodi ul
{
  list-style: none;
  margin: 0;
  padding: 0;
}
.body ul li{
  display: block;
  padding: 10px 20px;
  margin:0;
}

.body ul li:nth-child(2n)
{
   background-color: #fff;
}
.body ul li:nth-child(2n+1)
{
  background-color: #f8f8f8;
}
.footer{
  padding: 40px 0 0;
}

.button,
.button :link,
.button :visited{
  display: block;
  padding: 20px;
  text-transform: uppercase;
  background-color: #333;
  color:white;
}

.popular
{
  margin: -20px;
}
.popular .header
{
  padding-top: 50px;
}

.popular .footer
{
  padding-top: 60px;
}

.popular .price
{
  color: #ff8888;
}
.popular .button
{
  background-color: #ff8888;
  color: #fff;
}
.popular .button:hover
{
  background: #333;
  color: #ff8888;
}

@media screen and (max-width: 1023px){
  .table{
    margin: auto;
  }
  .table >div{
    float: none;
    width: 100%;
  }
  .table >div:not(:last-child){
    margin-right: 0;
    margin-bottom: 20px;
  }
  .body{
    max-width: 100%;
    overflow:  hidden;
    overflow-x: auto;
    white-space: nowrap;
  }
  .body  ul li {
    display: inline-block;
    vertical-align: middle;
  }
  .body ul li:not(:first-child)
  {
    margin-left: -5px;
  }

  .body ul li:nth-child(2n)
  {
    background-color: #e8e8e8;
  }
  .footer{
    padding-top: 0px;
  }
  .popular .header,
  .popular .footer{
    padding-top: 30px;
  }
  .popular{
    margin-top: 0;
  }
}
body {
  font-family: 'Roboto Condensed', "Helvetica Neue", Helvetica, Arial, sans-serif;

background: #0f0c29;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24243e, #302b63, #0f0c29); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  font-size: 20px;
  line-height: 28px;
  color: #323b40;
  margin: 40px 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins';
  color:#d3d3d3;
}

  h1 {
    width: 60%;
    max-width: 960px;
    margin: 0 auto 60px;
    color: white;
    text-align: left;
    font-size: 5rem;
    line-height: 5rem;
    transform: rotate(-3deg);
    text-shadow:  0 1px 0 hsl(52,7%,20%),
                  0 2px 0 hsl(52,7%,18%),
                  0 3px 0 hsl(52,7%,16%),
                  0 4px 0 hsl(52,7%,14%),
                  0 5px 0 hsl(52,7%,12%),
                  0 6px 0 hsl(52,7%,10%),
                  0 7px 0 hsl(52,7%,8%),
                  0 8px 0 hsl(52,7%,6%),

                  0 0 5px rgba(0,0,0,.05),
                  0 1px 3px rgba(0,0,0,.2),
                  0 3px 5px rgba(0,0,0,.2),
                  0 5px 10px rgba(0,0,0,.2),
                  0 10px 10px rgba(0,0,0,.2),
                  0 20px 20px rgba(0,0,0,.3);

  }

    h1 small {
      font-size: 3rem;
      display: block;
      color: #fa90a3;
      text-shadow: none;
    }
    section {
      position: relative;
      padding: 25px 0;
      text-align: center;
    }

              
            
!

JS

              
                
              
            
!
999px

Console