views:

47

answers:

2

I am using ASP.NET. I have an html table. One of the table cells (td) has two buttons. Just recently, when it is being rendered it is wrapping the buttons. Can anyone tell me why this is happening? Thanks!

+1  A: 

The table cell is narrower that the combined width of the buttons.

Try:

<td nowrap> on that cell.

Diodeus
tried that. did not work. :(
Anon
I suspect the width of that cell is hard-coded in one of the rows. If it is, make it wider or delete the width value to allow the nowrap to work.
Diodeus
A: 

Try this CSS:

<td style="white-space: nowrap;">

Also, make sure you remove any unnecessary white space between the buttons and replace it with &nbsp; if you wish to add some spacing.

Nissan Fan