NoWrap in ASP.Net

If you want your table column to not wrap in ASP.Net, you can use the NoWrap property in the tag like so:

  1. <td nowrap="nowrap">  
  2.  content  
  3. </td>  

This makes the code xhtml compliant and prevents warnings in the source view of designer in Visual Studio. Normally you could just specify a nowrap attribute by itself in plain html.

Or the CSS equivalent of setting nowrap:

  1. <td style="white-space:nowrap;">  
  2.  content  
  3. </td>  

Again, using the first option will prevent warnings in source view.

Add comment

Loading