How to Create a Notification Button

How to create a notification button


Add Html:

<a href="#" class="notification">
  <span class="badge">3</span>


Add CSS:

.notification {
  background-color: #555;
  color: white;
  text-decoration: none;
  padding: 15px 26px;
  position: relative;
  display: inline-block;
  border-radius: 2px;

.notification:hover {
  background: red;

.notification .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 5px 10px;
  border-radius: 50%;
  background: red;
  color: white;

Be the first to comment

Leave a Reply