Avoiding multiple lines in 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,
/Name .

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

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

Posted in General Tagged with: ,