nowrap in css
I thought this was kind of hard to find in the W3C CSS 2.1 spec, so I'll share it here.
HTML allowed you to specify a 'nowrap' attribute on <td> tags so that the table cell would expand its width using the width of the text inside it. In the XHTML world, you'd do it in CSS like this:
td {
white-space: nowrap;
}
I wouldn't have expected this to be controlled by an attribute called 'white-space'.
0 Comments:
Post a Comment
<< Home