Login

.icon-bar { width: 90px; /* Set a specific width */ background-color: #555; /* Dark-grey background */ } .icon-bar a { display: block; /* Make the links appear below each other instead of side-by-side */ text-align: center; /* Center-align text */ padding: 16px; /* Add some padding */ transition: all 0.3s ease; /* Add transition for hover effects */ color: white; /* White text color */ font-size: 36px; /* Increased font-size */ } .icon-bar a:hover { background-color: #000; /* Add a hover color */ } .active { background-color: #04AA6D; /* Add an active/current color */ }
<div class="vertical-menu">
  <a href="#" class="active">Home</a>
  <a href="#">Link 1</a>
  <a href="#">Link 2</a>
  <a href="#">Link 3</a>
  <a href="#">Link 4</a>
</div>