Click here to get back home

Any way to tell a table to go "as wide as necessary"?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Any way to tell a table to go "as wide as necessary"? Will Hartung 03-14-2005
Posted by Will Hartung on March 14, 2005, 5:02 pm
Please log in for more thread options


I have a table for a report. It can get wide, but that's no big deal. I
don't mind that it can get wide.

What I do mind, though, is the browser doing its damndest to smash the thing
down to get it to fit the window (to no avail). It crams it down until it
can't cram any more and then pops up the horizaontal scroll bar, rather than
just "let go", and set the table free, scrollbar be damned.

Is there a way to tell the browser that my content area is "ok" to make as
big as necessary to keep it from crunching up my table?

The detail is that the table can show either a single month, a quarter, or a
year of data, and (being lazy) I'd rather not have to set the table widths,
and just let the thing flow naturally, but not necessarily wrapping all of
the text etc.

The other detail is that with the same markup, I change the content-type so
it can (as an option) show up in Excel (where this isn't a problem at all).
But I want it to look as nice as practical in the browser without having to
do a bunch of custom markup or an Excel specific version, etc.

Regards,

Will Hartung
(willh@msoft.com)




Posted by me on March 14, 2005, 9:25 pm
Please log in for more thread options


> I have a table for a report. It can get wide, but that's no big deal. I
> don't mind that it can get wide.
>
> What I do mind, though, is the browser doing its damndest to smash the
thing
> down to get it to fit the window (to no avail). It crams it down until it
> can't cram any more and then pops up the horizaontal scroll bar, rather
than
> just "let go", and set the table free, scrollbar be damned.
>
> Is there a way to tell the browser that my content area is "ok" to make as
> big as necessary to keep it from crunching up my table?
>
> The detail is that the table can show either a single month, a quarter, or
a
> year of data, and (being lazy) I'd rather not have to set the table
widths,
> and just let the thing flow naturally, but not necessarily wrapping all of
> the text etc.
>
> The other detail is that with the same markup, I change the content-type
so
> it can (as an option) show up in Excel (where this isn't a problem at
all).
> But I want it to look as nice as practical in the browser without having
to
> do a bunch of custom markup or an Excel specific version, etc.
>
> Regards,
>
> Will Hartung
> (willh@msoft.com)

See the following:
Good Luck,
me

<td nowrap>Stuff you don't want to wrap.</td>




Posted by Adrienne on March 15, 2005, 6:55 pm
Please log in for more thread options



>> I have a table for a report. It can get wide, but that's no big deal.
>> I don't mind that it can get wide.
>>
>> Is there a way to tell the browser that my content area is "ok" to
>> make as big as necessary to keep it from crunching up my table?
>>
>
> See the following:
> Good Luck,
> me
>
><td nowrap>Stuff you don't want to wrap.</td>
>
Depreciated

Better:

td {white-space: nowrap}


--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Posted by me on March 15, 2005, 1:32 pm
Please log in for more thread options


>
> >> I have a table for a report. It can get wide, but that's no big deal.
> >> I don't mind that it can get wide.
> >>
> >> Is there a way to tell the browser that my content area is "ok" to
> >> make as big as necessary to keep it from crunching up my table?
> >>
> >
> > See the following:
> > Good Luck,
> > me
> >
> ><td nowrap>Stuff you don't want to wrap.</td>
> >
> Depreciated
>
> Better:
>
> td {white-space: nowrap}
> --
> Adrienne Boswell

I'm curious, how is this better and by whom is it depreciated?
Signed,
me




Posted by Jim Moe on March 15, 2005, 12:39 pm
Please log in for more thread options


me wrote:
>>><td nowrap>Stuff you don't want to wrap.</td>
>>>
>>Deprecated
>>
>>Better:
>>
>>td {white-space: nowrap}
>
> I'm curious, how is this better

It applies nowrap to all td's with a single line of code. No need to
have the deprecated tag in every td. It's scope of application is
controlled with ids or classes, and cascading.

> and by whom is it deprecated?
W3C.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Similar ThreadsPosted
rounded corners table (with wide angles) August 14, 2006, 11:03 pm
Wide, Wide Web December 27, 2004, 1:19 pm
y axis for wide graphs June 30, 2006, 5:43 pm
Large picture makes site too wide. July 23, 2008, 2:01 pm
How do I adjust html programming for wide screen monitors? - widescreen.JPG (0/1) February 8, 2007, 4:57 pm
Re: How do I adjust html programming for wide screen monitors? - widescreen.JPG (1/1) February 8, 2007, 9:51 pm
[newbie] client side jscript for a table inside a table March 24, 2005, 8:01 am
How to eliminate space between table border and table contents? December 6, 2005, 1:22 am
How do you make a table background cover whole table August 3, 2004, 9:49 pm
Table Within Table with colspan and width=100% August 15, 2005, 10:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap