Buttons with badges

Developer
Size
1,979 Kb
Views
18,216

How do I make an buttons with badges?

A set of buttons with alert badges.Based on http://drbl.in/koLf by Ced Funches (cedfunches.com). What is a buttons with badges? How do you make a buttons with badges? This script and codes were developed by Nika Zawila on 15 October 2022, Saturday.

Buttons with badges Previews

Buttons with badges - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Buttons with badges</title> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="holder"> <a href="#" class="btn"> <i class="fa fa-archive"></i> </a> <a href="#" class="btn"> <i class="fa fa-calendar"></i> </a> <a href="#" class="btn"> <i class="fa fa-bell"></i> </a> <a href="#" class="btn"> <i class="fa fa-envelope"></i> </a>
</div>
<div class="holder"> <a href="#" class="btn"> <i class="fa fa-archive"></i> <span class="btn__badge">4</span> </a> <a href="#" class="btn"> <i class="fa fa-calendar"></i> <span class="btn__badge btn__badge--blue">22</span> </a> <a href="#" class="btn"> <i class="fa fa-bell"></i> <span class="btn__badge btn__badge--green">5</span> </a> <a href="#" class="btn"> <i class="fa fa-envelope"></i> <span class="btn__badge btn__badge--purple">6</span> </a>
</div>
</body>
</html>

Buttons with badges - Script Codes CSS Codes

body { background: #faea6e; font-family: Helvetica, sans-serif; font-size: 16px; padding-top: 40px;
}
.holder { padding: 20px 0; border-radius: 4px; text-align: center;
}
.btn { background: white; text-decoration: none; padding: 20px; margin: 10px; position: relative; vertical-align: middle; text-align: center; display: inline-block; border-radius: 5px; transition: box-shadow 0.4s;
}
.btn:hover { box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.btn__badge { background: #FF5D5D; color: white; font-size: 12px; position: absolute; top: -10px; right: -10px; padding: 5px 8px; border-radius: 15px;
}
.btn__badge--blue { background: #33B6E6;
}
.btn__badge--green { background: #6fd162;
}
.btn__badge--purple { background: #b262d1;
}
.fa { color: #8E8E8E;
}
Buttons with badges - Script Codes
Buttons with badges - Script Codes
Home Page Home
Developer Nika Zawila
Username nikazawila
Uploaded October 15, 2022
Rating 4.5
Size 1,979 Kb
Views 18,216
Do you need developer help for Buttons with badges?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nika Zawila (nikazawila) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!