Image Badge
How do I make an image badge?
What is a image badge? How do you make a image badge? This script and codes were developed by Mackdoyle on 26 December 2022, Monday.
Image Badge - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Image Badge</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body>
<div class="inline"> <h2>Background Image Badge</h2> <p>Rounded image with image defined as a background in css</p> <div class="profile-img edge"></div>
</div>
<div class="inline"> <h2>Clipped Image Badge</h2> <p>Rounded image with parent element clipping HTML image</p> <div class="profile-img-wrapper"> <img src="http://gravatar.com/avatar/55e1b9bcdd2a29d9c0b9ceaae27d0e16?s=256" /> </div> </div>
</body>
</body>
</html>
Image Badge - Script Codes CSS Codes
/* BKG Image */
.profile-img { background: url('http://gravatar.com/avatar/55e1b9bcdd2a29d9c0b9ceaae27d0e16?s=256') 0 0 no-repeat; margin: 0 auto; width: 256px; height: 256px; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%;
}
.profile-img.edge { border: 16px solid #FFF; -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2), inset 1px 1px 15px rgba(100, 100, 100, 0.15); -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2), inset 1px 1px 15px rgba(100, 100, 100, 0.15); box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2), inset 1px 1px 15px rgba(100, 100, 100, 0.15);
}
/* Clipped Image */
.profile-img-wrapper{ width: 256px; overflow: hidden; /* for Firefox */ margin: 0 auto; border-radius: 100%; -moz-border-radius: 100%; -webkit-border-radius: 100%;
}
/* base styling */
body { background: rgba(0,0,0,0.1); font-family: sans-serif; font-size: 16px; color:#444; line-height:1.5em; font-weight: 300; letter-spacing: .03em; /*normalize*/ margin: 40px;
}
.inline{ display: inline-block; vertical-align:top; text-align: center; width: 49%;
}
Developer | Mackdoyle |
Username | mackdoyle |
Uploaded | December 26, 2022 |
Rating | 3 |
Size | 1,972 Kb |
Views | 6,072 |
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!
Name | Size |
A Pen by mackdoyle | 15,493 Kb |
CSS Pulse Animation | 3,166 Kb |
Hard-Stop Gradients | 2,288 Kb |
Analogous Colors | 3,998 Kb |
Toltip Arrow | 1,850 Kb |
Fluid-like Responsive Display Ads | 6,902 Kb |
Droste effect | 1,941 Kb |
Web Font Readability Test | 4,985 Kb |
Simple Message Box | 2,026 Kb |
Calendar Date | 2,779 Kb |
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!
Name | Username | Size |
Nice textured background | Hans | 2,659 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Svg penguin | _massimo | 2,990 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Beautiful canvas stars | Matths | 2,399 Kb |
Vue.js Starter | Andymerskin | 1,268 Kb |
Improve | Gavra | 1,652 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!