Invoice Design

Demandium Subscription Invoice

by MD Hasan Patwary

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>HTML + CSS</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <div class="invoice-box-wrap">
      <div class="invoice-box">
        <div class="d-flex justify-content-between mb-3">
          <div class="d-flex flex-column gap-1">
            <h2>INVOICE</h2>
            <div>Transaction ID: #0100082</div>
            <div>Date: 23 July, 2023</div>
          </div>
          <div class="d-flex flex-column gap-1 align-items-end text-right">
            <img
              width="84"
              class="mb-1"
              src="{{asset('public/assets/admin-module')}}/img/logo.png"
              alt=""
            />
            <div>
              L: 02, H: 1005, 1007, <br />
              Av: 11, R: 09, Dhaka 1216, BD
            </div>
            <div>+8801100000001</div>
            <div>[email protected]</div>
          </div>
        </div>

        <div class="invoice-card">
          <div class="invoice-card__head">
            <div class="d-flex align-items-center justify-content-between">
              <div class="d-flex gap-4">
                <div>
                  <div>Provider</div>
                  <div class="fs-10">Jhone Doe</div>
                </div>
                <div>
                  <div>Phone</div>
                  <div class="fs-10">+9154983134435</div>
                </div>
                <div>
                  <div>Email</div>
                  <div class="fs-10">[email protected]</div>
                </div>
              </div>
              <div class="d-flex flex-column gap-1 align-items-end text-right">
                <div>Invoice of (USD)</div>
                <h3 class="text-primary">$500</h3>
              </div>
            </div>
          </div>
          <div...

CSS

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.invoice-box-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.invoice-box {
  background-color: #f9fcff;
  padding: 1.5rem 1rem;
  font-size: 9px;
  color: #212b36;
}

.fs-10 {
  font-size: 10px;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.gap-1 {
  gap: 4px;
}

.gap-4 {
  gap: 24px;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-30 {
  margin-bottom: 30px;
}

.text-primary {
  color: #0461a5;
}

.invoice-card {
  border-radius: 12px;
  border: 0.75px solid #d7dae0;
  background: #fff;
}

.invoice-card__head,
.invoice-card__body {
  padding: 1rem 1.5rem;
}

.invoice-card__head {
  border-bottom: 0.75px solid #d7dae0;
}

.meta-info {
  gap: 3rem;
}

.border-left {
  border-left: 0.75px solid #d7dae0;
}

.table-wrap {
  border-radius: 5px;
  overflow: hidden;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table th,
table td {
  padding: 10px;
  text-align: center;
}

table th {
  background-color: rgba(158, 173, 193, 0.1);
}

table td {
  background-color: #fcfcfc;
}

.invoice-footer {
  border-top: 0.5px solid #ebedf2;
  background: rgba(4, 97, 165, 0.05);
  text-align: center;
  padding: 11px;
  font-size: 10px;
}