In this example below you will see how to do a Ribbon HTML/CSS with some HTML / CSS and Javascript

This awesome code was written by 10Dimensional, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 10Dimensional ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>Ribbon HTML/CSS</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

      <link rel="stylesheet" href="css/style.css">



<div class="ribbon"></div>



/*Downloaded from https://www.codeseek.co/10Dimensional/ribbon-htmlcss-MeJvjy */
body {
  padding: 20px;

.ribbon {
  position: relative;
.ribbon:before, .ribbon:after {
  content: "";
  width: 0;
  position: absolute;
  display: block;
  border-right: 20px solid #1eb2df;
  border-left: 20px solid #1eb2df;
  border-top: 50px solid #1eb2df;
  border-bottom: 10px solid #1eb2df;
  border-bottom-color: transparent;
  z-index: 0;
.ribbon:after {
  top: 2px;
  border-color: #ccc;
  border-bottom-color: transparent;
  z-index: -1;