9/29/11

How to avoid multiple lines in TD tag?

In some situation (viewing in different browsers) the single <td> tag displays content in two lines. If you want to display sentence in single line always in all browsers then use <td> attributes ‘nowrap’

For example,you may want username/userid/Name to be displayed in single line, but due to some reason or different browser it will display in two lines like below,
username/userid
/Name .


So to avoid this issue use ‘nowrap’ as below.

<td width="48%" align="right" valign="bottom" nowrap> Username/userid/Name<td>


SHARE THIS POST: