Simple label
How do I make an simple label?
What is a simple label? How do you make a simple label? This script and codes were developed by Fedor Troitsky on 11 November 2022, Friday.
Simple label - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple label</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="thumbnail"> <div class="thumbnail__label">Default</div> <img src="http://placehold.it/200" alt="" />
</div>
<div class="thumbnail"> <div class="thumbnail__label thumbnail__label--new">New</div> <img src="http://placehold.it/200" alt="" />
</div>
<div class="thumbnail"> <div class="thumbnail__label thumbnail__label--latest">Latest</div> <img src="http://placehold.it/200" alt="" />
</div>
<div class="thumbnail"> <div class="thumbnail__label thumbnail__label--jackpot">Jackpot</div> <img src="http://placehold.it/200" alt="" />
</div>
</body>
</html>
Simple label - Script Codes CSS Codes
body { background-color: #dcf2fe;
}
.thumbnail { position: relative; width: 200px; height: 200px; margin: 40px auto; padding: 5px; border-radius: 5px; border-bottom: 4px solid #bce3f9; background-color: #fff;
}
.thumbnail__label { position: absolute; left: -6px; top: 18px; padding: 6px 18px 6px 18px; font-size: 12px; line-height: 18px; text-transform: uppercase; color: white; text-shadow: 0 0 2px rgba(0, 0, 0, 0.1); background-color: #646464;
}
.thumbnail__label:before, .thumbnail__label:after { content: ''; position: absolute; display: block; border-style: solid;
}
.thumbnail__label:before { bottom: -6px; left: 0; border-width: 6px 0 0 6px;
}
.thumbnail__label:after { top: 0; right: -6px; border-width: 15px 6px; -webkit-transform: rotate(360deg);
}
.thumbnail__label:before { border-color: #3e3e3e transparent transparent transparent;
}
.thumbnail__label:after { border-color: #646464 transparent #646464 #646464;
}
.thumbnail__label--new { background-color: #d57b90;
}
.thumbnail__label--new:before { border-color: #c3415f transparent transparent transparent;
}
.thumbnail__label--new:after { border-color: #d57b90 transparent #d57b90 #d57b90;
}
.thumbnail__label--latest { background-color: #69a2f9;
}
.thumbnail__label--latest:before { border-color: #1f74f6 transparent transparent transparent;
}
.thumbnail__label--latest:after { border-color: #69a2f9 transparent #69a2f9 #69a2f9;
}
.thumbnail__label--jackpot { color: #f9ef46; background-color: #dc6f41;
}
.thumbnail__label--jackpot:before { border-color: #b04b20 transparent transparent transparent;
}
.thumbnail__label--jackpot:after { border-color: #dc6f41 transparent #dc6f41 #dc6f41;
}
Developer | Fedor Troitsky |
Username | ftroitsky |
Uploaded | November 11, 2022 |
Rating | 3 |
Size | 2,751 Kb |
Views | 12,144 |
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 |
Responsive css icon | 2,967 Kb |
A Pen by Fedor Troitsky | 1,452 Kb |
Cylon css loader | 2,054 Kb |
Svg animated logo for Fetchee | 3,103 Kb |
Pacman css loader | 2,507 Kb |
Node editor layout prototype | 7,410 Kb |
A Pen by Fedor Troitsky | 1,843 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 |
Add This API | ThatGuySam | 2,848 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Slick Slider | Wearebold | 5,913 Kb |
Zeichensatz | Moklick | 2,058 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
JS Beispiel getElementsByClassName 3 | HSZG-Frontend-Kurs | 1,988 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!