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.

            
              <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<body>
  <div id="wrap">
    <div id="cart_details_3">
      <div class="cart_btn">
        <span class="icon"><i class="fa fa-shopping-cart"></i></span>
        <div class="items"><span>1 item</span></div>
        <div class="price"><span>$27.95</span></div>
      </div>
      <div class="details">
        <div class="product_row">
          <div class="image">
            <img src="https://i.imgur.com/gJsXvHB.jpg"/>
          </div>
          <div class="info">
            <span class="title">Pink Halter Small</span>
            <span class="price">$27.95</span>
            <div class="qty"><input id="qty" placeholder="1"></input></div>
            <div class="remove"><i class="fa fa-times-circle"></i></div>
          </div>
        </div>
        <div class="bottom">
          <div class="left">
          <span class="sub">Subtotal</span><span class="total">$27.95</span>
            <div class="update"><span>Update</span><i class="fa fa-refresh"></i></div>
          </div>
          <div class="right">
            <a class="checkout" href="#">Checkout <i class="fa fa-chevron-right"></i></a>
          </div>
       </div>
    </div>
  </div>
    <div id="cart_details_3">
      <div class="cart_btn">
        <span class="icon"><i class="fa fa-shopping-cart"></i></span>
        <div class="items"><span>1 item</span></div>
        <div class="price"><span>$27.95</span></div>
      </div>
      <div class="notification">
        <span> Item was Added to your Cart!</span>
      </div>
      
  </div>
</body>
            
          
!
            
              *{
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
}
img{max-width:100%;}
body{
  background:#f1f2f3;
  font-family: 'Open Sans', sans-serif;
  font-weight:400;
}
#wrap{
  width:300px;
  margin:0 auto;
}
#cart_details_3{
  display:block;
  width:100%;
  float:left;
  margin-bottom:30px;
}
#cart_details_3 .cart_btn{
  width:100%;
  background:#3a9fbf;
  color:#FFF;
  cursor:pointer;
  height:50px;
  border-radius:3px;
  z-index:1;
}
#cart_details_3 .cart_btn .icon{
  background:#3a9fbf;
  float:left;
  height:50px;
  width:20%;
  padding-top:5px;
  color:#FFF;
  text-align:center;
  font-size:1.5em;
  border-radius:3px;
}
#cart_details_3 .cart_btn .items{
  width:40%;
  float:left;
  text-align:center;
  height:100%;
  border-left:2px solid;
  padding-top:12px;
}

#cart_details_3 .cart_btn .price{
  width:40%;
  float:left;
  text-align:center;
  height:100%;
  border-left:2px solid;
  padding-top:12px; 
}
#cart_details_3 .details{
  margin-top:-3px;
  border:1px solid #3a9fbf;
  padding:5px;
  position:relative;
  float:left;
  padding-top:10px;
  z-index:-1;
  border-bottom-right-radius:4px;
  border-bottom-left-radius:4px;
  background:#FFF;
  display:none;
}
#cart_details_3 .details .product_row{
  width:100%;
  float:left;
  border-bottom:1px solid #3a9fbf;
}
#cart_details_3 .details .product_row .image{
  width:15%;
  float:left;
}
#cart_details_3 .details .product_row .info{
  width:85%;
  float:left;
}
#cart_details_3 .details .product_row .info .title{
  display:block;
  font-size:12px;
  text-align:center;
  width:35%;
  float:left;
  margin-left:2%;
}
#cart_details_3 .details .product_row .info .price{
  display:block;
  text-align:center;
  font-size:14px;
  font-weight:700;
  width:40%;
  float:left;
}
#cart_details_3 .details .product_row .info .qty{
  width:15%;
  float:left;
}
#cart_details_3 .details .product_row .info .qty input{
  width:30px;
  height:30px;
  border:1px solid #ccc;
  border-radius:3px;
  padding-left:5px;
  margin:0 auto;
  display:block;
}
#cart_details_3 .details .product_row .info .remove{
  float:left;
  width:5%;
  padding-top:4px;
  text-align:center;
  font-size:15px;
  color:crimson;
  transition:all 0.5s ease;
}
.details .product_row .info .remove:hover{
  font-size:26px;
}
#cart_details_3 .details .bottom{
  width:100%;
  display:block;
  float:left;
}
#cart_details_3 .details .bottom .left{
  width:30%;
  float:left;
  text-align:center;
}
#cart_details_3 .details .bottom .left .update{
  width:100%;
  float:left;
}
#cart_details_3 .details .bottom .left .update i{
  transition:all 2s ease;
  margin-left:8px;
  color:#808080;
  cursor:pointer;
}
#cart_details_3 .details .bottom .left .update span{
  font-size:10px;
  margin-top:0px;
}
#cart_details_3 .details .bottom .left .update i:hover{
  -webkit-transform:rotate(180deg);
  transform:rotate(180deg);
  color:#000;
}
#cart_details_3 .details .bottom .right{
  width:70%;
  float:left;
  
}
#cart_details_3 .details .bottom .sub{
  display:block;
}
#cart_details_3 .details .bottom .total{
  display:block;
  font-weight;700;
}
#cart_details_3 .details .bottom .update{
}
#cart_details_3 .details .bottom .checkout{
  display:block;
  padding:5px 20px;
  color:#FFF;
  background:green;
  text-decoration:none;
  text-align:center;
  margin-left:5%;
  margin-top:15px;
}
#cart_details_3 .details .bottom .checkout i{
  float:right;
  margin-right:10%;
  margin-top:4px;
}
#cart_details_3 .notification{ 
  margin-top:-3px;
  width:100%;
  text-align:center;
  border:1px solid #3a9fbf;
  padding:5px;
  position:relative;
  float:left;
  padding-top:10px;
  z-index:-1;
  border-bottom-right-radius:4px;
  border-bottom-left-radius:4px;
}

            
          
!
            
              $(document).ready(function(){
$(".cart_btn").click(function(){
  $(".details").slideToggle(1000);
});
});
            
          
!
999px
Loading ..................

Console