Gab's

BLOG

CSS Shapes: How to Create a Ribbon with Just One Element

CSS Shapes: How to Create a Ribbon with Just One Element

Ever wanted to add a ribbon-style tag or label to your website without loading images or complicated HTML? Good news—you can create stylish ribbon shapes using pure CSS, and in most cases, you only need one element to do it.

I recently found this really useful tool that gives you a bunch of ribbon designs you can copy and paste straight into your project. It’s called CSS Ribbon Shapes Generator.

Why Use CSS Ribbons Instead of Images?

  • Loads faster (no image files)
  • Easy to customize with just a few lines of CSS
  • Fully responsive and scalable
  • Can be animated or styled dynamically

How It Works

The ribbons use clever CSS tricks like ::before and ::after pseudo-elements, clip-path, borders, and transforms to create different effects. You can generate top-left ribbons, corner folds, straight banners, and more—all without needing multiple divs or any external libraries.

Here’s an example of how simple it can be:

<div class="ribbon">NEW</div>
.ribbon {
background: #e74c3c;
color: white;
padding: 5px 15px;
position: relative;
display: inline-block;
font-weight: bold;
transform: rotate(-45deg);
top: 20px;
left: -20px;
}

And that’s just the beginning. The generator site gives you dozens of ribbon styles ready to use.

Check it out here:
👉 https://css-generators.com/ribbon-shapes

Perfect for…

  • Product tags (SALE, NEW, DISCOUNT)
  • Headers and titles
  • Portfolio items or feature highlights
  • Callouts or badges

About Me

Gabriel Dominic Oxibillo

I’m an artist with a passion for programming, blending creativity with technical expertise to deliver impactful designs. Over 7 years, I’ve mastered graphic design, creating logos, websites, animations, 3D models, social media graphics, packaging, and more, while also excelling in video editing, visual effects, game assets, and promotional materials. Proficient in Adobe Creative Suite, I combine traditional and digital techniques, and my programming skills enhance my work, particularly in web development. Detail-oriented, adaptable, and eager to learn, I thrive in collaborative environments, bringing versatile skills and a sharp eye for aesthetics to any creative team.

About me

Connect with me on

Hire me on Upwork

Email me