Rectangle with circle end - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Rectangle with circle end

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">
li {<!--from  ww w. ja  v  a  2  s  . c o  m-->
   display:block;
   float:left;
   width:34%;
   margin:0 0 0 -21px;
   background-color:Chartreuse;
   text-indent:41px;
}

li.active{
}
li.active span {
   background-color:yellow;
}

li span {
   display:inline-block;
   border:2px solid blue;
   border-radius:0 16px 16px 0;
   padding-right:11px;
}
</style> 
 </head> 
 <body> 
  <ol> 
   <li> <span>Lorem </span> </li> 
   <li class="active"> <span>Lorem </span> </li> 
   <li> <span>Lorem </span> </li> 
  </ol>  
 </body>
</html>

Related Tutorials