HTML text display Limit for table column - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

HTML text display Limit for table column

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor s</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
table {<!--   w  w  w .  ja v a2  s  .c o  m-->
   width:201px;
}

.title {
   width:100px;
   word-wrap:break-word;
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <table> 
   <thead> 
    <tr> 
     <th>Lorem</th> 
     <th>Lorem</th> 
    </tr> 
   </thead> 
   <tbody> 
    <tr> 
     <td class="title">Lorem ipsum dolor sit amet,</td> 
     <td>Lorem</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials