Automatically wrapped to a new line for the text inside an HTML table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Automatically wrapped to a new line for the text inside an HTML 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_legenda {<!--from  ww w. ja v  a 2  s  .c om-->
   table-layout:fixed;
}

.table_legenda th {
   word-wrap:break-word;
}
</style> 
 </head> 
 <body> 
  <table border="1" class="table_legenda" width="100%"> 
   <thead> 
    <tr> 
     <th width="8.33%">Lorem </th> 
     <th width="2%">Lorem</th> 
     <th width="8.33%">Lorem ips</th> 
     <th width="8.33%">Lorem ipsum d</th> 
     <th width="6.33%">Lorem ips</th> 
     <th width="6.33%">Lorem ipsu</th> 
     <th width="6.33%">Lorem ipsu</th> 
     <th width="8.33%">Lorem ipsum dolor</th> 
     <th width="24.66%">Lorem ips</th> 
     <th width="4.33%">Lorem ipsu</th> 
     <th width="8.33%">Lorem </th> 
     <th width="8.33%">Lorem </th> 
    </tr> 
   </thead> 
  </table>  
 </body>
</html>

Related Tutorials