Automatic Table Width Adjustment

How can I create a table that will adjust its width to fit the records inside on one line, without having to set a definite width size? I've tried omitting the width tag altogether, but it keeps moving the content of long lines down to another line.

I don't want to set a definite width size, because the same table attributes appear on around 184 pages and not all the tables have long lines.
Who is Participating?
siabodConnect With a Mentor Commented:
add the tag NOWRAP to your <TD> : <TD NOWRAP>blah</TD>
then the cell will adjust it's size
lhuttonAuthor Commented:
I can't believe how simple this is! I'd never thought of using the NOWRAP attribute in a <TD> tag.

Thank you so much :-)
You're welcome :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.