Thursday, April 30, 2009

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>

More Articles...

No comments:



Thanks for visiting our blog


twitterrss facebook linkedin YouTube subscribe




Subscribe via email

Enter your email address: