Create triangle with border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Create triangle with border

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">
#triangle {<!--from  ww  w .j a  v a2s .  c o m-->
   width:0;
   height:0;
   border-top:100px solid Chartreuse;
   border-left:100px solid yellow;
   opacity:0.2;
}
</style> 
 </head> 
 <body> 
  <div id="triangle"></div>  
 </body>
</html>

Related Tutorials