Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 5 Oct 2007 20:37:25 -0400,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


Making a <td> as small a width as possible   
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/
date: Fri, 5 Oct 2007 20:37:25 -0400   author:   Nathan Sokalski

Re: Making a <td> as small a width as possible   
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/
>
date: Sat, 6 Oct 2007 19:04:10 +0800   author:   Singapore Web Design

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us