Notification Button
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET"type="text/css"href="web.css">
<title>web design</title>
</head>
<body>
<h1>Notification Button</h1>
<a href="#" class="notification">
<span>inbox</span>
<span class="bage">3</span>
</a>
</body>
</html>
CSS Notification Button Style Sheet
.notification{
background-color: #555;
color: #fff;
text-decoration: none;
padding:15px 26px;
display: inline;
position: relative;
border-radius: 2px;
cursor: pointer;
}
.notification:hover{
background-color: red;
}
.notification .bage{
position: absolute;
top:-10px;
right:-10px;
padding:5px 10px;
border-radius: 50px;
background-color: red;
color: #fff;
}
No comments:
Post a Comment