Banner with angled shapes - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Banner with angled shapes

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">
.wrapper {<!--  ww  w . j  av a 2  s. c  o  m-->
   background:Chartreuse;
   padding:21px;
   font-size:41px;
   font-family:Arial;
   text-align:center;
   position:relative;
}

.wrapper:after {
   content:"";
   width:0;
   height:0;
   border-top:43px solid yellow;
   border-bottom:43px solid blue;
   border-right:41px solid pink;
   position:absolute;
   right:0;
   top:0;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper">
    Lorem ipsum 
  </div>  
 </body>
</html>

Related Tutorials