Rectangle with an arrow - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Arrow

Description

Rectangle with an arrow

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum do</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.uppergray {<!-- ww  w .j  a  v a 2s .c om-->
   height:100px;
   width:100%;
   background-color:Chartreuse;
   line-height:31px;
}

.testdiv {
   width:100px;
   height:100px;
   background-color:yellow;
   margin:11px auto;
   position:relative;
   top:-121px;
   left:0px;
   opacity:0.6;
}

.testdiv:after {
   content:' ';
   width:0px;
   height:0px;
   background-color:blue;
   position:absolute;
   border-top:11px solid pink;
   border-right:11px solid OrangeRed;
   border-bottom:11px solid grey;
   border-left:16px solid BlueViolet;
   top:41px;
   right:-26px;
}

.exbutton {
   margin:21px auto;
   width:96px;
   height:96px;
   background-color:Chartreuse;
   border:3px solid yellow;
   text-align:center;
   line-height:91px;
}
</style> 
 </head> 
 <body> 
  <div class="exbutton">
    Lorem ip 
  </div> 
  <div class="testdiv"></div>  
 </body>
</html>

Related Tutorials