Horizontal Ribbon In Elementor

HTML Code:

				
					 <div id="header">
    <img decoding="async" src="https://diywebsitespro.com/wp-content/uploads/2023/01/Pricing.png"</a>
  <div id="ribbon">
    <div id="nav">
      <ul class="nav">
        <li class="flavors"><a href="#">Buy Now</a></li>
				
			

CSS Code:

				
					
#header {
  position: relative;
  min-height: 150px;
  text-align: center;
  padding: 0px;
}

#header img {
  max-width: 310px;
  postion: relative;
}

#ribbon {
  background-color: red;
  width: 335px;
  padding: 10px;
  position: relative;
  margin-top: -100px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Times New Roman', cursive;
  font-size: 20px;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 2px 6px #999999;
}

#ribbon:before,
#ribbon:after {
  content: "";
  width: 6px;
  bottom: 18px;
  position: absolute;
  display: block;
  border: 25px solid red;
  box-shadow: 0 8px 6px -6px red;
  z-index: -2;
}


#ribbon:before {
  left: -42px;
  border-right-width: 35px;
  border-left-color: transparent;
}

#ribbon:after {
  right: -42px;
  border-left-width: 35px;
  border-right-color: transparent;
}

#nav:before,
#nav:after {
  content: "";
  bottom: 44px;
  position: absolute;
  display: block;
  border-style: solid;
  z-index: -1;
}

#nav:before {
  left: 0;
  border-width: 0px 0px 20px 20px;
  border-color: transparent transparent black transparent ;
}

#nav:after {
  right: 0;
  border-width: 20px 0px 0px 20px;
  border-color: transparent transparent  transparent black ;
}

#nav ul {
  width: 100%;
  list-style: none;
  margin: 0px;
  text-align: center;
}

#nav li {
  display: inline;
  padding: 10px;
}

#nav a {
  text-decoration: none;
  color: black;
  text-align: center;
}

#nav a:hover {
  color: navy;
				
			
alt="tutorials" alt="Hexagon Portfolio Code" alt="GLOWING NEON TEXT" alt="Water Ripple Effect " alt="Water Ripple Effect code" alt="Rotate And Z-Index" alt="Not Linktree" alt="User IP and Location" alt="auto play video" alt="Click Button to Change Image And Text Using Elementor" alt="7 Day Repeat Countdown Timer" alt="Blog Posts Only" alt="Change Background And Text Colour On Scroll Code"