How to Create a Notification Button

How to create a notification button

Inbox3

Add Html:

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

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

Your email address will not be published.


*