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

              
                <html>
    <head>
     
              
            <div id="main">
                <div class="part-right">
            
            <table>
                <tr>
                  <th colspan="2">Product Details</th>  
                  <th>Quantity</th>
                  <th>Price</th>
                  <th>Total</th>
                  <th></th>
                </tr>
                <tr>
                    <td><img src="img/bonsai1.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>

                    <td><button class="table-button">DELETE</button></td>
                </tr>
                <tr>
                    <td><img src="img/flower4.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>
                    <td><button class="table-button">DELETE</button></td>
                </tr>
                <tr>
                    <td><img src="img/cactus9.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>
                    <td><button class="table-button">DELETE</button></td>
                </tr>
                <tr>
                    <td><img src="img/bonsai1.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>
                    <td><button class="table-button">DELETE</button></td>
                </tr>
                <tr>
                    <td><img src="img/flower4.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>
                    <td><button class="table-button">DELETE</button></td>
                </tr>
                <tr>
                    <td><img src="img/cactus9.jpg" alt=""  height=150 width=200></img></td>
                    <td>Lorem Ipsum<br>
                        asdhakshdk aksjdaljksfla
                    </td>
                    <td><input type="number" id="quantity" name="quantity" min="1" max="10"></td>
                    <td>20 USD</td>
                    <td>40 USD</td>
                    <td><button class="table-button">DELETE</button></td>
                </tr>
            </table>
        
    </div>
                    <div class="part-left">
                        <div class="order-container">
                        <h2>Order Summary</h2>
                        <div class="order-info">
                          <div class="info-one">
                            <div class="item-total">Items Total(3)</div>
                            <div class="total-number">123 USD</div>
                         </div>
                          <hr>
                         <div class="info-two">
                            <div class="info-two-a">
                            <div class="subtotal">Subtotal</div>
                            <div class="subtotal-number">234 USD</div>
                        </div>
                        <div class="info-two-b">
                            <div class="shipping">Shipping</div>
                            <div class="shipping-fee">4 USD</div>
                        </div>
                          <div class="info-two-c">
                            <div class="tax">TAX</div>
                            <div class="tax-number">3 USD</div>
                          </div>
                     </div>
                        <hr>
                        <div class="info-three">
                            <div class="overall-total">Total</div>
                            <div class="overall-number">234 USD</div>
                        </div>
                    </div> 
                    <button class="proceed">CHECKOUT</button>
                    </div>
                   
    </div>
    </div>
            <br><br><br><br><br><br><br><br><br>
            <br><br><br><br><br><br><br><br><br>
            <br><br><br><br><br><br><br><br><br>
            <br><br><br><br><br><br><br><br><br>
            
            </body>
            <footer>
                <div class="copyright">
                    <h4>COPYRIGHT 2021</h4>
                </div>
                <div class="social">
                   
                    <img src="img/twitter.png" width="16px" height="15">
                    <img src="img/facebook.png" width="16px" height="15">
                    <img src="img/instagram.png" width="16px" height="15">
          
                </div>
            </footer>
        <script src=""async defer></script>
    </body>
</html>
              
            
!

CSS

              
                
input{
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    border-bottom:1px solid #73A942;
    outline:none;
    background-color:#ffffff;
   position: relative;  
}
.first-part input{
    width: 400%; 
    
  }
.first-part .labels{
    padding-top: 10px;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.second-part {
    padding-top: 20px;
    display: flex; 
}
.second-part .inputs {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 50px;
    display: flex; 
}
.sp2{
    position: relative;
    right: -450px; 
}


.second-part input{
    width: 50%; 
}

.buttons{
    
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-evenly; 
        margin-bottom: 50px; 
        margin-top: -5px; 
        
}    

 button{
    background-color: #245501;
    color: #ffffff; 
    font-size: 20px;
    padding: 10px;
    border-radius: 50px;
     width: 150px;
     border: none;
     
 }
 #main{
    display: flex; 
    padding: 10px;
    justify-content: center;
 }
 .part-right{
  width: 70%; 
  
 }
 
table{
    width: 100%;
    margin-top: 30px;
    
 }

 th, td{
    border-bottom: 1px solid #ffffff;
    
}
 th{
    margin-top: 40px;
    height: 70px; 
    padding: 20px; 
    font-size: 25px;
 }
 
 td{
    
    text-align: center;
    padding: 15px; 
    font-size: 25px;
   
 }
 .table-button{
    width: 90px;
    font-size: 10px;
 }
 
 .part-left {
    width: 25%; 
    margin-top: 40px;
    margin-right: 5px; 
   position: relative;
  }

.order-container{
    background-color: #ffffff;
    border: 2px solid  #245501;
    margin-top: 100px;
    padding: 10px;
    height: 50%; 
    font-size: 20px;
    border-radius: 8px; 
    position: sticky;
    top: 0px; 
    width: 100%; 
}

.order-info{
    margin-top: 20px;
}

.info-one,
.info-three {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.info-three{
    font-size: 25px;
}

.info-two-a,
.info-two-b,
.info-two-c{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.proceed{
    background-color: #245501;
    color: #ffffff; 
    font-size: 20px;
    padding: 10px;
    border-radius: 50px;
     width: 160px;
     border: none;
    margin: 15% 25%;
    align-items: center;
    align-self: center;
          
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border-width: 0px;
    color:#245501;
    height: 1px; 
    background: #245501;
    text-align: center;
    
}

footer{
    height: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
}

footer .social{
   position: absolute; 
   right: 0; 
   margin-right: 8px;
}

footer .social img{
    margin: 5px; 
}

@media screen and (max-width: 1198px) {
    #main{
        display: flex; 
        padding: 10px;
       
    }
    .part-left{
    width: 25%; 
   }

}
@media screen and (max-width: 1186px) {
    #main{
        display: flex; 
        padding: 10px;
       
    }
    .part-left{
        width: 25%; 
        
       }
    .order-info{
        font-size: 15px; 
    }
       
      table{
          width: 80%;
          margin-top: 30px;
         
       }
      
       th, td{
          border-bottom: 1px solid #ffffff;

          
      }
       th{
          margin-top: 40px;
          height: 60px; 
          padding: 20px; 
          font-size: 20px;
       }
       
       td{
         
          text-align: center;
          padding: 15px; 
          font-size: 15px;
         
       }
       .proceed{
        background-color: #245501;
        color: #ffffff; 
        font-size: 20px;
        padding: 10px;
        border-radius: 50px;
         width: 160px;
         border: none;
        margin: 15% 12%;
        align-items: center;
        align-self: center;
              
    }
 
 }
 @media screen and (max-width: 1090px) {
    #main{
        display: flex; 
        padding: 10px;
       
    }
    
    .order-info{
        font-size: 15px; 
    }
       
      table{
        width: 50%; 
      }
      
       th, td{
          border-bottom: 1px solid #ffffff;

          
      }
       th{
          margin-top: 40px;
          height: 50px; 
          padding: 20px; 
          font-size: 15px;
       }
       
       td{
         
          text-align: center;
          padding: 15px; 
          font-size: 15px;
         
       }
       .proceed{
        background-color: #245501;
        color: #ffffff; 
        font-size: 20px;
        padding: 10px;
        border-radius: 50px;
         width: 160px;
         border: none;
        margin: 15% 12%;
        align-items: center;
        align-self: center;
              
    }
 
 }
 @media screen and (max-width: 1020px) {
 
        #main {
            display: flex;
            padding: 10px;
            align-items: center;
            flex-direction: column;
            justify-content: center;
            flex-wrap: nowrap;
            align-content: center;
        }
        .part-right{
            width: 100%; 
        }
       
       .part-left{
        width: 80%; 
       }
    
    .order-container {
        background-color: #ffffff;
        border: 2px solid #245501;
        margin-top: 100px;
        padding: 10px;
        height: 50%;
        font-size: 20px;
        border-radius: 8px;
        
        width: 100%;
    }
    .order-info{
        font-size: 20px; 
    }
       
      table{
        width: 100%; 
      }
      
       th, td{
          border-bottom: 1px solid #ffffff;
       
          
      }
       th{
          margin-top: 40px;
          height: 50px; 
          padding: 20px; 
          font-size: 20px;
         
       }
       
       td{
       
          text-align: center;
          padding: 15px; 
          font-size: 20px;
         
       }
       .proceed{
        background-color: #245501;
        color: #ffffff; 
        font-size: 20px;
        padding: 10px;
        border-radius: 50px;
         width: 160px;
         border: none;
        margin: 15% 40%;
        align-items: center;
        align-self: center;
              
    }
 
 }
 @media screen and (max-width: 787px) {
 
    #main {
        display: flex;
        padding: 10px;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        flex-wrap: nowrap;
        align-content: center;
    }
    .part-right{
        width: 100%; 
    }
   
   .part-left{
    width: 80%; 
   }

.order-container {
    background-color: #ffffff;
    border: 2px solid #245501;
    margin-top: 100px;
    padding: 10px;
    height: 50%;
    font-size: 20px;
    border-radius: 8px;
    
    width: 100%;
}
.order-info{
    font-size: 20px; 
}
   
  table{
    width: 100%; 
    border-collapse: collapse;
  }
  
   th, td{
    border: none; 
   
      
  }
  tr{
    border-bottom: 1px solid #ffffff;
  }
   th{
      margin-top: 40px;
      height: 50px; 
      padding: 20px; 
      font-size: 20px;
      position: absolute;
      top: -200px;
      visibility: hidden;
   }
   
   td{
      display: block;
      text-align: center;
      padding: 15px; 
      font-size: 20px;
     
   }
   .proceed{
    background-color: #245501;
    color: #ffffff; 
    font-size: 20px;
    padding: 10px;
    border-radius: 50px;
     width: 160px;
     border: none;
    margin: 15% 40%;
    align-items: center;
    align-self: center;
          
}

}
              
            
!

JS

              
                
              
            
!
999px

Console