create a ribbon shape in CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

create a ribbon shape in CSS

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.bookmarkRibbon {<!--  w  w w  . ja  va  2 s . c  om-->
   width:0;
   height:100px;
   border-right:51px solid Chartreuse;
   border-left:51px solid yellow;
   border-bottom:31px solid blue;
}

.bookmarkRibbonRight {
   width:100px;
   height:0px;
   border-right:31px solid pink;
   border-bottom:51px solid OrangeRed;
   border-top:51px solid grey;
}
</style> 
 </head> 
 <body> 
  <div class="bookmarkRibbon"></div> 
  <div class="bookmarkRibbonRight"></div>  
 </body>
</html>

Related Tutorials