Adding dash border to table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Adding dash border to table cell

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">

table<!--  ww w .j  ava2s .com-->
{
   border-collapse: separate;
}


      </style> 
 </head> 
 <body> 
  <table style="width: 100%; text-align: center;"> 
   <tbody> 
    <tr> 
     <td id="displayed" colspan="3"> 
        <span class="mrBannerText" style="">Neque porro quisquam est 
        qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...</span> </td> 
    </tr> 
    <tr> 
     <td style="border: 2px dashed black;"> Option 1 </td> 
     <td style="width: 50px;"></td> 
     <td> Option 2 </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials