Simple color ribbon

Developer
Size
1,788 Kb
Views
10,120

How do I make an simple color ribbon?

Seen on css-tricks. What is a simple color ribbon? How do you make a simple color ribbon? This script and codes were developed by Tom Hermans on 09 December 2022, Friday.

Simple color ribbon Previews

Simple color ribbon - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple color ribbon</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="ribbon-wrapper"> <div class="ribbon-color">NEWS</div> </div>
</div>
</body>
</html>

Simple color ribbon - Script Codes CSS Codes

.wrapper { margin: 50px auto; width: 280px; height: 370px; background: white; border-radius: 10px; -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); -moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3); box-shadow: 0px 0px 8px rgba(0,0,0,0.3); position: relative; z-index: 90;
}
.ribbon-wrapper { width: 85px; height: 88px; overflow: hidden; position: absolute; top: -3px; right: -3px;
}
.ribbon-color { font: bold 15px Sans-Serif; color: #333; text-align: center; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); position: relative; padding: 7px 0; left: -5px; top: 15px; width: 120px; background-color: #f00; color: #eee; -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); -moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
}
.ribbon-color:before, .ribbon-color:after { content: ""; border-top: 3px solid #6e8900; border-left: 3px solid transparent; border-right: 3px solid transparent; position:absolute; bottom: -3px;
}
.ribbon-color:before { left: 0;
}
.ribbon-color:after { right: 0;
}
Simple color ribbon - Script Codes
Simple color ribbon - Script Codes
Home Page Home
Developer Tom Hermans
Username tomhermans
Uploaded December 09, 2022
Rating 3
Size 1,788 Kb
Views 10,120
Do you need developer help for Simple color ribbon?

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!

Tom Hermans (tomhermans) 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!