Prevent Table From Wrapping
How do I prevent a table from wrapping when it is inside of an outer table cell? Have a look at the simplified example at the bottom of my question. My aspx-tablerow:
Solution 1:
If the css white-space
does not work, you can try to add nowrap="nowrap"
to your td
, just like you added valign="top"
.
Very ugly, but it should work.
Edit: Ah, now I see: A table is a block-level element so it will always go to a new line unless you make it an inline-element or float it.
Solution 2:
tabletrtd {
white-space: nowrap;
}
Solution 3:
You've put the table at odds with itself. It is set to finite pixel count and yet you don't want to wrap once that's exceeded. You might attempt:
white-space: nowrap;
overflow: hidden;
Post a Comment for "Prevent Table From Wrapping"