I have a <td> that contains several elements, some of which are left-aligned, right-aligned, or centered. I do not know the widths of these elements beforehand, so I cannot give my <td> a fixed width. I want the <td> to have as small a width as possible without causing anything to wrap, but IE seems to want to make it bigger. Does anybody know of a good way to prevent a <td> from being stretched to a larger width than necessary? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Hello, If the containing table and td have no width set, the td width will be the size of the column. To prevent the wrapping, use the nowrap attribute. See http://www.htmlcodetutorial.com/tables/_TD_NOWRAP.html -- Singapore Web Design http://www.bootstrike.com/Webdesign/ Singapore Web Hosting http://www.bootstrike.com/WinXP/faq.html Windows XP FAQ "Nathan Sokalski" wrote in message news:uRgqAE7BIHA.5360@TK2MSFTNGP03.phx.gbl... >I have a <td> that contains several elements, some of which are >left-aligned, right-aligned, or centered. I do not know the widths of these >elements beforehand, so I cannot give my <td> a fixed width. I want the ><td> to have as small a width as possible without causing anything to wrap, >but IE seems to want to make it bigger. Does anybody know of a good way to >prevent a <td> from being stretched to a larger width than necessary? >Thanks. > -- > Nathan Sokalski > njsokalski@hotmail.com > http://www.nathansokalski.com/ >