Make Triangle Marker with CSS border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border

Description

Make Triangle Marker with CSS 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">
#line {<!--   w  ww .ja v a2  s  . com-->
   border-bottom:4px solid Chartreuse;
   position:relative;
   width:501px;
   height:51px;
}

#container {
   position:absolute;
   bottom:-3px;
   left:301px;
   width:100px;
   background:yellow;
}

#left,
#right {
   float:left;
   border-bottom:4px solid blue;
   height:51px;
}

#left {
   width:51px;
   border-radius:0 0 51% 0;
}

#right {
   width:51px;
   border-radius:0 0 0 51%;
}
</style> 
 </head> 
 <body> 
  <div id="line"> 
   <div id="container"> 
    <div id="left"></div> 
    <div id="right"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials