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

              
                <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<div class="page">
  <div class="timeline">
    <div>
      <div class="background">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#F0CE95" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-bag">
          <path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path>
          <line x1="3" y1="6" x2="21" y2="6"></line>
          <path d="M16 10a4 4 0 0 1-8 0"></path>
        </svg>
      </div>
      <div class="sub-text">
        Summary
      </div>
    </div>
    <div class="line"></div>
    <div>
      <div class="background white">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#A8B3C0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-youtube">
          <path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path>
          <polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>
        </svg>
      </div>
      <div class="sub-text gray">
        Payment
      </div>
    </div>
    <div class="line"></div>
    <div>
      <div class="background white">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#A8B3C0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check">
          <polyline points="20 6 9 17 4 12"></polyline>
        </svg>
      </div>
      <div class="sub-text gray">
        Confirmation
      </div>
    </div>
  </div>
  <div class="message">
    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#5043DE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-gift">
      <polyline points="20 12 20 22 4 22 4 12"></polyline>
      <rect x="2" y="7" width="20" height="5"></rect>
      <line x1="12" y1="22" x2="12" y2="7"></line>
      <path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path>
      <path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>
    </svg>
    <p class="message-text">Congrats, you are eligible for a <span>Coupon code</span> in this order</p>
  </div>
  <p class="heading">Order Summary</p>
  <div class="item-list">
    <div class="item">
      <img class="vintage-image" src="https://4.imimg.com/data4/FW/DD/MY-13455815/wooden-brass-beautiful-antique-telephone-tp-07-500x500.jpg" alt="vintage-telephone">
      <div class="item-detail">
        <p class="item-name">Old Reis Telephone</p>
        <p class="item-seller">Sold by <span>Vintage Techies</span></p>
        <p class="stock-left">Only 1 left in stock</p>
        <div class="options">
          <p>DELETE</p>
          <p class="buy-later">BUY LATER</p>
        </div>
      </div>
      <div class="amount-detail">
        <p class="dollar">$ <span>80</span></p>
        <p class="discount">60% off</p>
        <p class="order-quantity">Qty : 1<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 24 24" fill="none" stroke="#C7CDD3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down">
            <polyline points="6 9 12 15 18 9"></polyline>
          </svg></p>
      </div>
    </div>
    <div class="item">
      <img class="vintage-image" src="https://canary.contestimg.wish.com/api/webimage/5aabda612293186572541c98-large.jpg?cache_buster=0b88424085e4d86a496b110423b25455" alt="vintage-typewriter">
      <div class="item-detail">
        <p class="item-name">Vintage Typewriter</p>
        <p class="item-seller">Sold by <span class="seller-name">Retroman</span></p>
        <p class="stock-left">Only 2 left in stock</p>
        <div class="options">
          <p>DELETE</p>
          <p class="buy-later">BUY LATER</p>
        </div>
      </div>
      <div class="amount-detail">
        <p class="dollar">$ <span>160</span></p>
        <p class="discount">20% off</p>
        <p class="order-quantity">Qty : 1 <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 24 24" fill="none" stroke="#C7CDD3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down">
            <polyline points="6 9 12 15 18 9"></polyline>
          </svg></p>
      </div>
    </div>
  </div>
  <p class="heading">Payment Method</p>
  <div class="payment-option">
    <svg class="bank" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#F8D58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home">
      <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
      <polyline points="9 22 9 12 15 12 15 22"></polyline>
    </svg>
    <div class="bank-information">
      Internet Banking
      <p>Federal Bank Ltd.</p>
    </div>
    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#C7CDD3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down">
      <polyline points="6 9 12 15 18 9"></polyline>
    </svg>
  </div>
  <button>Proceed to the Checkout</button>
</div>
              
            
!

CSS

              
                p {
  margin: 0;
}
body {
  font-family: "Roboto", sans-serif;
  background-color: #e2e5e9;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page {
  width: 370px;
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 10px 10px 4px #e1e4e9;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 20px;
  justify-content: center;
}
.line {
  width: 70px;
  height: 2px;
  background-color: #eaedf1;
  margin-bottom: 15px;
}
.background {
  background-color: #6156e3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  padding: 3px;
}
.white {
  background-color: white;
  border: 1px solid #e2e7eb;
}
.sub-text {
  padding-top: 5px;
  font-size: 10px;
  font-weight: 700;
}
.gray {
  color: #a8b3c0;
}
.message {
  font-size: 10px;
  background-color: #fff6df;
  display: flex;
  align-items: center;
  padding: 5px;
}
.message-text {
  padding-left: 10px;
  color: #beb190;
}
.message-text span {
  color: #8f7a4a;
}
.heading {
  font-size: 14px;
  padding: 10px 0;
  font-weight: 700;
}
.item-list {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.item {
  display: grid;
  grid-template-columns: 2fr 5fr 1fr;
  align-items: center;
  gap: 10px;
  border: 2px solid #f2f5f9;
  padding: 10px;
  border-radius: 5px;
}
.vintage-image {
  width: 70px;
  height: 70px;
}
.item-name {
  font-size: 11px;
  font-weight: 500;
}
.item-seller {
  padding-top: 3px;
  padding-bottom: 6.5px;
  color: #c1c5cb;
  font-size: 9.5px;
}
.item-seller span {
  color: black;
}
.stock-left {
  color: #e97171;
  font-size: 8.5px;
  font-weight: 500;
}
.options {
  padding-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #96a4ae;
  font-size: 7.5px;
  font-weight: bold;
}
.buy-later {
  color: #7c74e8;
}
.dollar {
  font-size: 13px;
  color: #949eab;
}
.dollar span {
  vertical-align: text-top;
  font-size: 16px;
  color: black;
}
.discount {
  padding-top: 5px;
  padding-bottom: 11.5px;
  color: #867eeb;
  font-size: 8.5px;
  font-weight: bold;
}
.order-quantity {
  border: 2px solid #f2f5f9;
  padding: 3px;
  font-size: 7px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
}
.payment-option {
  border: 2px solid #f2f5f9;
  border-radius: 5px;
  padding: 10px;
  display: grid;
  grid-template-columns: 3fr 9fr 1.5fr;
  align-items: center;
  margin-bottom: 10px;
}
.bank {
  background-color: #4c40e0;
  padding: 7.5px 15px;
  border-radius: 5px;
}
.bank-information {
  font-size: 12px;
}
.bank-information p {
  color: #c5cdd3;
  font-size: 10px;
}
button {
  background-color: #4c40e0;
  color: white;
  border-style: none;
  width: 100%;
  height: 40px;
  border-radius: 5px;
  padding: 10px;
  font-size: 10px;
  font-weight: bold;
}

              
            
!

JS

              
                
              
            
!
999px

Console