Sample Humberger Open Close Icons, Logo, DropDown Menu And Beautiful Data Table

HTML Sample Code

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Hamburger Menu with Dropdown and Beautiful Data Table</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>

  <nav class="navbar">
   <!-- logo -->
    <div class="logo"><img src="fastbdslogo.gif"></img></div>  <!-- change your logo here -->
    
     <!-- Dark Mode Toggle -->
     <div class="dark-toggle" id="darkSwitch"></div>

    <!-- Toggle Checkbox -->
    <input type="checkbox" id="menu-toggle">
    
    <!-- Menu Icon (Open/Close) -->
    <label for="menu-toggle" class="menu-icon">
    <span class="open-icon">&#9776;</span>    <!-- ? Hamburger icon -->
    <span class="close-icon">&times;</span>   <!--  X Close icon -->
    </label>

    <!-- Navigation Menu -->
    <ul class="menu">
      <li><a href="#">Home</a></li>
      <li class="dropdown">
        <a href="#">Services</a>
        <ul class="dropdown-menu">
          <li><a href="#">Web Teller System</a></li>
          <li><a href="#">Internet Banking</a></li>
          <li><a href="#">Mobile Banking</a></li>
          <li><a href="#">Middleware</a></li>
          <li><a href="#">Open Payment API</a></li>
      </ul>
      </li>
      <li><a href="#">About</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
  </nav>

  <!-- Page Content -->
  <section class="content">
    <h2>System Overview</h2>
    <p>Below is a beautiful table with clean-light styling:</p>

    <table class="beauty-table">
      <thead>
        <tr>
          <th>ID</th>
          <th>Service</th>
          <th>Status</th>
          <th>Clients</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>01</td>
          <td>Web Teller System</td>
          <td class="active">Active</td>
          <td>20+</td>
        </tr>
        <tr>
          <td>02</td>
          <td>Internet Banking</td>
          <td class="pending">Pending</td>
          <td>30+</td>
        </tr>
        <tr>
          <td>03</td>
          <td>Mobile Banking</td>
          <td class="pending">Pending</td>
          <td>40+</td>
        </tr>
 <tr>
          <td>04</td>
          <td>Middleware</td>
          <td class="active">Active</td>
          <td>50+</td>
        </tr>
 <tr>
          <td>05</td>
          <td>Open Payment API</td>
          <td class="active">Active</td>
          <td>60+</td>
        </tr>
      </tbody>
    </table>
  </section>

<!-- SCRIPT DARK MODE LOGIC -->
<script>
document.getElementById("darkSwitch").onclick = function () {
  document.body.classList.toggle("dark");
};
</script>
</body>
</html>

CSS (Style.css



/* --- Reset and base styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* DARK MODE */
body.dark {
  background: #1e1e1e;
  color: #eaeaea;
}


/* --- Navbar Container --- */
.navbar {
  background-color: blue;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}

/* --- Logo --- */
.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* --- Hide the checkbox --- */
#menu-toggle {
  display: none;
}

/* --- Menu Icon --- */
.menu-icon {
  cursor: pointer;
  font-size: 28px;
  color: white;
  display: inline-block;
}

.menu-icon .close-icon {
  display: none;
}

/* --- Navigation Menu --- */
.menu {
  list-style: none;
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: blue;
  position: absolute;
  top: 60px;
  left: 0;
}
.menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: background 0.3s;
}

.menu li a:hover {
  background: red; 
}

/* --- Dropdown Menu --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  display: none;
  background-color: blue;
}

.dropdown-menu li a {
  padding-left: 40px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/* --- Toggle Icons and Menu --- */
#menu-toggle:checked + .menu-icon .open-icon {
  display: none;
}

#menu-toggle:checked + .menu-icon .close-icon {
  display: inline;
}

#menu-toggle:checked ~ .menu {
  display: flex;
}

/* --- Responsive for Larger Screens --- */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    flex-direction: row;
    align-items: left;
    justify-content: flex-end;
    background: none;
    position: static;
    width: auto;
  }

 .menu li {
    position: relative;
  }

  .menu li a {
    padding: 10px 15px;
  }

 .menu-icon {
    display: none;
  }

/* Dropdown for Desktop */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: blue;
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* --- Optional Smooth Dropdown Animation --- */
.dropdown-menu {
  transition: all 0.3s ease;
}

/* BEAUTIFUL TABLE STYLING */
.content {
  padding: 30px;
}

.beauty-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

body.dark .beauty-table {
  background: #2b2b2b;
  color: #eaeaea;
}

.beauty-table th {
  background: #fafafa;
  padding: 12px;
}

body.dark .beauty-table th {
  background: #3a3a3a;
}

.beauty-table td {
  padding: 12px;
  border-top: 1px solid #eee;
}

body.dark .beauty-table td {
  border-top-color: #444;
}

.beauty-table tr:hover {
  background: #f4f4f4;
}

body.dark .beauty-table tr:hover {
  background: #3a3a3a;
}

.active { color: green; font-weight: bold; }
.pending { color: orange; font-weight: bold; }

/* DARK MODE TOGGLE BUTTON */
.dark-toggle {
  cursor: pointer;
  background: #ddd;
  border-radius: 20px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: 0.3s;
}

.dark-toggle::after {
  content: "";
  width: 21px;
  height: 21px;
  background: lime;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

body.dark .dark-toggle {
  background: #444;
}

body.dark .dark-toggle::after {
  transform: translateX(25px);
}

RESULT HUMBERGER MENU with different open and close icons, drop down menu and beautiful data table

System Overview

Below is a beautiful table with clean-light styling:

ID Service Status Clients
01 Web Teller System Active 20+
02 Internet Banking Pending 30+
03 Mobile Banking Pending 40+
04 Middleware Active 50+
05 Open Payment API Active 60+
All Rights Reserved, Copyright © PT. InetUtama Systemindo 2025