How TO - Notification Buttons
Clash Royale CLAN TAG#URR8PPP
<!--
❮ Previous
Next ❯
Inbox
3
Try it Yourself »
❮ Previous
Next ❯
<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
How TO - Notification Buttons
❮ Previous
Next ❯
Learn how to create notification buttons with CSS.
Inbox
3
How To Create a Notification Button
Step 1) Add HTML:
Example
<a href="#" class="notification">
<span>Inbox</span>
<span
class="badge">3</span>
</a>
Step 2) Add CSS:
Example
.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;
Try it Yourself »
Go to our CSS Buttons Tutorial to learn
more about how to style buttons.
❮ Previous
Next ❯