
July 24th, 2005, 12:49 AM
| | | Any way to tell a table to go "as wide as necessary"?
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) | 
July 24th, 2005, 12:49 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Previously in comp.infosystems. www.authoring.html, Will Hartung
<willh@msoft.com> said:
[color=blue]
> 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?[/color]
This is the default behaviour for tables. They will stretch as wide as
necessary to accommodate the content. If your table is not behaving that
way, post a URI.
--
Mark Parnell http://www.clarkecomputers.com.au | 
July 24th, 2005, 12:49 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
"Will Hartung" <willh@msoft.com> wrote in message
news:39mmvuF65569rU1@individual.net...[color=blue]
> 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[/color]
thing[color=blue]
> 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[/color]
than[color=blue]
> 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[/color]
a[color=blue]
> year of data, and (being lazy) I'd rather not have to set the table[/color]
widths,[color=blue]
> 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[/color]
so[color=blue]
> it can (as an option) show up in Excel (where this isn't a problem at[/color]
all).[color=blue]
> But I want it to look as nice as practical in the browser without having[/color]
to[color=blue]
> do a bunch of custom markup or an Excel specific version, etc.
>
> Regards,
>
> Will Hartung
> (willh@msoft.com)[/color]
See the following:
Good Luck,
me
<td nowrap>Stuff you don't want to wrap.</td> | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Gazing into my crystal ball I observed "me" <anonymous@_.com> writing in
news:113chtlnsbui0bd@corp.supernews.com:
[color=blue]
> "Will Hartung" <willh@msoft.com> wrote in message
> news:39mmvuF65569rU1@individual.net...[color=green]
>> 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?
>>[/color]
>
> See the following:
> Good Luck,
> me
>
><td nowrap>Stuff you don't want to wrap.</td>
>[/color]
Depreciated
Better:
td {white-space: nowrap}
--
Adrienne Boswell http://www.cavalcade-of-coding.info
Please respond to the group so others can share | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
"Adrienne" <arbpen2003@sbcglobal.net> wrote in message
news:Xns961A6504F850Darbpenyahoocom@207.115.63.158 ...[color=blue]
> Gazing into my crystal ball I observed "me" <anonymous@_.com> writing in
> news:113chtlnsbui0bd@corp.supernews.com:
>[color=green]
> > "Will Hartung" <willh@msoft.com> wrote in message
> > news:39mmvuF65569rU1@individual.net...[color=darkred]
> >> 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?
> >>[/color]
> >
> > See the following:
> > Good Luck,
> > me
> >
> ><td nowrap>Stuff you don't want to wrap.</td>
> >[/color]
> Depreciated
>
> Better:
>
> td {white-space: nowrap}
> --
> Adrienne Boswell[/color]
I'm curious, how is this better and by whom is it depreciated?
Signed,
me | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
me wrote:[color=blue][color=green][color=darkred]
>>><td nowrap>Stuff you don't want to wrap.</td>
>>>[/color]
>>Deprecated
>>
>>Better:
>>
>>td {white-space: nowrap}[/color]
>
> I'm curious, how is this better[/color]
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.
[color=blue]
> and by whom is it deprecated?[/color]
W3C.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
"Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
news:FbGdnTdeffNstqrfRVn-vg@giganews.com...[color=blue]
> me wrote:[color=green][color=darkred]
> >>><td nowrap>Stuff you don't want to wrap.</td>
> >>>
> >>Deprecated
> >>
> >>Better:
> >>
> >>td {white-space: nowrap}[/color]
> >
> > I'm curious, how is this better[/color]
>
> 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.[/color]
That may be of use to the OP if he uses (or knows how to use) a style sheet.
[color=blue][color=green]
> > and by whom is it deprecated?[/color]
>
>W3C[/color]
No offense but I don't stop using code that works because the w3c thinks
it's depreciated but YMMV. Thank you for your reply, the OP now has a better
idea of why he might want to use that as an alternative to what I suggested.
Signed,
me | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
me wrote:[color=blue]
>[color=green][color=darkred]
>>>and by whom is it deprecated?[/color]
>>
>>W3C[/color]
>
> No offense but I don't stop using code that works because the w3c thinks
> it's depreciated but YMMV.
>[/color]
Deprecated, not depreciated. :-)
The W3C does not *think* it is deprecated, they deprecated it
<http://www.w3.org/TR/html401/struct/tables.html#edef-TD>. That means it
disappears from the HTML standard in the next revision. Which means that
user agents (browsers) conforming to the new standard no longer recognize
the tag. (Of course there is always "quirks" mode.)
Using CSS has a few advantages:
1. Generally a *lot* less markup, especially in terms of tags.
2. Style is concentrated in a few files rather than spread all over a site.
3. It makes the markup code less sensitive to browser vagaries.
4. It allows web pages to age gracefully as standards move on.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Previously in comp.infosystems. www.authoring.html, Jim Moe
<jmm-list.AXSPAMGN@sohnen-moe.com> said:
[color=blue]
> The W3C does not *think* it is deprecated, they deprecated it
> <http://www.w3.org/TR/html401/struct/tables.html#edef-TD>. That means it
> disappears from the HTML standard in the next revision. Which means that
> user agents (browsers) conforming to the new standard no longer recognize
> the tag. (Of course there is always "quirks" mode.)[/color]
No, it means they don't *have* to support it. It is unlikely they will
drop support any time soon though, given the number of legacy pages (and
unfortunately, new ones) that use deprecated elements and attributes.
Quirks mode or Standards mode don't have any effect on which
elements/attributes are support AFAIK.
[color=blue]
> Using CSS has a few advantages:
> 1. Generally a *lot* less markup, especially in terms of tags.
> 2. Style is concentrated in a few files rather than spread all over a site.[/color]
Indeed. Changes to styles requires changing just one file (or possibly a
couple), instead of every page on the site. If done well, the entire
design of a site can be changed without touching the HTML.
[color=blue]
> 3. It makes the markup code less sensitive to browser vagaries.[/color]
Not sure I agree with that one.
[color=blue]
> 4. It allows web pages to age gracefully as standards move on.[/color]
5. The CSS files are generally cached, so only need to be downloaded
once, rather than downloaded again with every new page.
6. There are some things only possible with CSS.
7. Browsers that don't support CSS can safely ignore it, while the
content remains accessible and well-structured.
8. It is *logical*. The HTML handles the content, the CSS handles the
presentation.
--
Mark Parnell http://www.clarkecomputers.com.au | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
"Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
news:8M6dnSTwK4V4F6rfRVn-rw@giganews.com...[color=blue]
> me wrote:[color=green][color=darkred]
> >>>and by whom is it deprecated?
> >>
> >>W3C[/color]
> >
> > No offense but I don't stop using code that works because the w3c thinks
> > it's depreciated but YMMV.
> >[/color]
> Deprecated, not depreciated. :-)[/color]
Adrianne's spelling not mine.
[color=blue]
> The W3C does not *think* it is deprecated, they deprecated it
> <http://www.w3.org/TR/html401/struct/tables.html#edef-TD>. That means it
> disappears from the HTML standard in the next revision.[/color]
A standard suggested by an agency with no power to enforce it, thankfully.
[color=blue]
> Which means that
> user agents (browsers) conforming to the new standard no longer recognize
> the tag.[/color]
That's unfortunate for those user agents because IMO <td nowrap> will be in
use long for some time to come. In any case my opinion is that IE will still
recognize the tag so there's no problem.
[snip css]
I know all about CSS but the important question is does the OP.
Signed,
me | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Mark Parnell <webmaster@clarkecomputers.com.au> wrote:
[color=blue][color=green]
>> The W3C does not *think* it is deprecated, they deprecated it
>> <http://www.w3.org/TR/html401/struct/tables.html#edef-TD>. That means it
>> disappears from the HTML standard in the next revision. Which means that
>> user agents (browsers) conforming to the new standard no longer recognize
>> the tag. (Of course there is always "quirks" mode.)[/color]
>
>No, it means they don't *have* to support it.[/color]
No such thing as UAs "having" to support elements, w3c copyrighting the
term "xhtml" makes no difference to that situation, at best it may give
w3c the right to challenge claims of software being "xhtml compliant".
But if a product supports xhtml minus some elements there is nothing w3c
can do to change that.
--
Spartanicus | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
On Tue, 15 Mar 2005 18:24:53 -0700, Jim Moe
<jmm-list.AXSPAMGN@sohnen-moe.com> wrote:
[color=blue]
>me wrote:[color=green]
>>[color=darkred]
>>>>and by whom is it deprecated?
>>>
>>>W3C[/color]
>>
>> No offense but I don't stop using code that works because the w3c thinks
>> it's depreciated but YMMV.
>>[/color]
> Deprecated, not depreciated. :-)
> The W3C does not *think* it is deprecated, they deprecated it
><http://www.w3.org/TR/html401/struct/tables.html#edef-TD>. That means it
>disappears from the HTML standard in the next revision.[/color]
The W3C HTML WG have stated that there will not be another HTML
version, so what does deprectated mean in that situation? surely it's
completely irrelevant?
[color=blue]
> Using CSS has a few advantages:
>1. Generally a *lot* less markup, especially in terms of tags.[/color]
'cept the DIV soup of sites like css-zengarden.
[color=blue]
>2. Style is concentrated in a few files rather than spread all over a site.[/color]
you need to re-test and QA the entire site after changing a single
look of one page.
[color=blue]
>3. It makes the markup code less sensitive to browser vagaries.[/color]
Browsers are considerably more sensitive to CSS quirks (not
surprisingly as rendering languages are always more sensitive by their
very nature)
[color=blue]
>4. It allows web pages to age gracefully as standards move on.[/color]
I just don't see this at all...
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/ | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
In <4237f24e.321620505@news.individual.net>, on 03/16/2005
at 08:48 AM, jim@jibbering.com (Jim Ley) said:
[color=blue]
>The W3C HTML WG have stated that there will not be another HTML
>version, so what does deprectated mean in that situation? surely
>it's completely irrelevant?[/color]
Unless they've stated that there will not be another XHTML version,
it's clearly relevant.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org | 
July 24th, 2005, 12:50 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
On Wed, 16 Mar 2005 12:59:27 -0500, "Shmuel (Seymour J.) Metz"
<spamtrap@library.lspace.org.invalid> wrote:
[color=blue]
>In <4237f24e.321620505@news.individual.net>, on 03/16/2005
> at 08:48 AM, jim@jibbering.com (Jim Ley) said:
>[color=green]
>>The W3C HTML WG have stated that there will not be another HTML
>>version, so what does deprectated mean in that situation? surely
>>it's completely irrelevant?[/color]
>
>Unless they've stated that there will not be another XHTML version,
>it's clearly relevant.[/color]
How so? HTML and XHTML are different things?
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/ | 
July 24th, 2005, 12:51 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Previously in comp.infosystems. www.authoring.html, Spartanicus
<me@privacy.net> said:
[color=blue]
> No such thing as UAs "having" to support elements,[/color]
What I really should have said, is that they no longer have to support
it to still be compliant with the specs.
[color=blue]
> w3c copyrighting the
> term "xhtml" makes no difference to that situation, at best it may give
> w3c the right to challenge claims of software being "xhtml compliant".[/color]
Yes. If a browser claims to be compliant with the specs, but doesn't
support a particular element, then that is obviously a false claim. If
the element in question is deprecated though, they can still honestly
claim compliance.
[color=blue]
> But if a product supports xhtml minus some elements there is nothing w3c
> can do to change that.[/color]
Very true.
--
Mark Parnell http://www.clarkecomputers.com.au | 
July 24th, 2005, 12:51 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
Previously in comp.infosystems. www.authoring.html, Jim Ley
<jim@jibbering.com> said:
[color=blue]
> How so? HTML and XHTML are different things?[/color]
Kind of. XHTML1 is just HTML4.01 reformulated in XML instead of SGML. So
anything deprecated in HTML4.01 is also deprecated in XHTML1.
--
Mark Parnell http://www.clarkecomputers.com.au | 
July 24th, 2005, 12:51 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
On Thu, 17 Mar 2005 09:18:40 +1100, Mark Parnell
<webmaster@clarkecomputers.com.au> wrote:
[color=blue]
>Previously in comp.infosystems. www.authoring.html, Jim Ley
><jim@jibbering.com> said:
>[color=green]
>> How so? HTML and XHTML are different things?[/color]
>
>Kind of. XHTML1 is just HTML4.01 reformulated in XML instead of SGML. So
>anything deprecated in HTML4.01 is also deprecated in XHTML1.[/color]
Yes, that's fine, things being deprecated in XHTML 1 are sensible.
My question was strictly about HTML, the W3 HTML WG have said there
will be no more HTML versions, what does deprecated mean if there are
no more HTML versions. It's clear in the case of XHTML, but what
about HTML?
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/ | 
July 24th, 2005, 12:52 AM
| | | Re: Any way to tell a table to go "as wide as necessary"?
In <423894ce.363220042@news.individual.net>, on 03/16/2005
at 08:19 PM, jim@jibbering.com (Jim Ley) said:
[color=blue]
>How so? HTML and XHTML are different things?[/color]
Yes, although they are certainly similar. XHTML is intended to be the
replacement for HTML, and a valid XHTML document is an XML document.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|