Make a td element not wrap text inside a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Make a td element not wrap text inside a table

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">
.hidden {<!--from   w  ww . j av a 2  s.  c o m-->
   white-space:nowrap;
   overflow:hidden;
   max-width:91px;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
     <td class="hidden">Lorem ipsum dolor sit amet, consectetur adipiscing</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials