Container with rounded triangle/arrow in CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Arrow

Description

Container with rounded triangle/arrow 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">

div {<!--from  w  ww  .  j  ava 2s  .co m-->
   width: 200px;
   height: 100px;
   overflow: hidden;
   position: relative;
   display: inline-block;
   padding: 35px 100px;
}
div:before {
   content: '';
   width:200px;
   height: 200px;
   background: #ccc;
   border-radius: 20px;
   position:absolute;
   transform: rotate(-56deg) skewY(25deg);
}
div:after {
   content: '';
   width:334px;
   left:33px;
   top: 134px;
   z-index:1;
   height: 40px;
   background: #ccc;
   position:absolute;
}


      </style> 
 </head> 
 <body> 
  <div></div>  
 </body>
</html>

Related Tutorials