123

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .container
  .col.col-1
    .con
      h2 Minimum
      hr
      ul
        h3 INCLUDES
        li i3 CPU
        li 1GB RAM
        li 512MB GPU
        li 1GB SSD
        li 1 Bonus
        li 1 Extra point
    span $
      strong 9.99
    button.btn.btn-danger ORDER NOW
  .col.col-2
    .con
      h2 Standart
      hr
      ul
        h3 INCLUDES
        li i5 CPU
        li 6GB RAM
        li 2GB GPU
        li 10GB SSD
        li 2 Bonuses
        li 2 Extra points
        li Cool Features
    span $
      strong 39.99
    button.btn.btn-danger ORDER NOW
  .col.col-3
    .con
      h2 Maximum
      hr
      ul
        h3 INCLUDES
        li i7 CPU
        li 16GB RAM
        li 6GB GPU
        li 32GB SSD
        li 3 Bonuses
        li 5 Extra points
        li Cool Features
        li Extra Cool Features
    span $
      strong 99.99
    button.btn.btn-danger ORDER NOW
            
          
!
            
              html{height: 100%;}
body{
  font-family: Raleway;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #bbb;
  flex-direction: column;
}
.container{
  width: 900px;
  height: 600px;
  margin: 0 auto;
  display: flex;
}
.con{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.col{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: white;
  text-align: center;
  flex-grow: 1;
  border: 3px solid lightcoral;
  border-radius: 4px;
  background-color: #444;
  background-image: linear-gradient(45deg, #444, transparent);
  transition: all 0.15s ease;
  &:not(:last-child){
    border-right: none;
  }
  hr{
    border-color: rgba(255,255,255,.35);
    border-width: 5px;
    margin: 0 40%;
  }
  h2{
    font-family: Russo One;
  }
  h3{
    padding: 0px 0 10px 0px;
    font-weight: normal;
    color: lightcoral
  }
  ul{
    padding: 0;
    display: flex;
    flex-direction: column;
    align-self: center;
    margin-top: 23%;
    h3{
      font-size: 1.4em;
      font-weight: bold;
      color: white;
    }
    li{
      font-family: Righteous;
      font-size: 1.2em;
      list-style-type: none;
      //font-family: Black Ops One;
      //font-family: Nunito;
      //font-family: Russo One;
      position: relative;
      text-align: center;
      color: rgba(255,255,255, .9);
      line-height: 2em;
    }
  }
  .btn{
    font-family: Righteous;
    width: 80%;
    margin: 0 auto;
    background-color: transparent;
    border-color: #fff;
    margin-bottom: 1em;
    height: 40px;
    font-size: 16px;
    transition: all 0.15s ease-in-out;
    &:hover{
      background-color: #fff;
      color: #333;
    }
  }
  span{
    margin-bottom: 0.75em;
    font-family: Russo One;
    color: #a25484f;
    font-size: 30px;
  }
}

//COL HOVER
.col:hover{
  transform: scale(1.05);
  border-color: #fff;
  border-right: 3px solid #fff;
  background-color: #444;
  background-image: linear-gradient(35deg, lightcoral, transparent);
  color: #444;
  h2{color: white;}
  ul{li{color: #fff;}}
  .btn{
    border-color: #444;
    color: #444;
    &:hover{
      background-color: #444;
      color: white;
    }
  }
}

.col-2{
  background-color: #aaa;
  .btn{
    background-color: lightcoral;
  }
  &:hover{
    .btn{
      background-color: transparent;
    }
  }
}

//RESPONSIVE
@media screen and (max-width: 900px){
  .container{
    width: 92%;
  }
  .col{
    .btn{
      height: 50px;
    }
  }
  .col:hover{
    transform: none;
  }
}

@media screen and (max-width: 690px){
  .container{
    width: 98%;
    flex-direction: column;
    height: 100%;
    .col{
    margin-bottom: 2em;
    margin-top: 2em;
    border-right: 3px solid lightcoral;
    ul{
      margin-top: 1e,;
    }
    .btn{
      height: 60px;
    }
  }
   }
  
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console