Draw little circle/flag next to text in table cell not aligned to far right - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Draw little circle/flag next to text in table cell not aligned to far right

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.circle {<!--   w  w  w  . j  a va  2  s. c  o  m-->
   width:17px;
   height:17px;
   border-radius:51%;
   font-size:13px;
   color:Chartreuse;
   line-height:17px;
   text-align:center;
   background:yellow;
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <table border="1" cellpadding="0" style="border-collapse: collapse;"> 
   <tbody> 
    <tr> 
     <td width="150" height="30">Lorem i 
      <div class="circle">
        Lor 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials