This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > July 2007 > Re: Table width is always at 100%
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Table width is always at 100%
|
|
| Thomas 'PointedEars' Lahn 2007-07-30, 6:22 pm |
| Trap wrote in comp.lang.java script:
> Hi,
>
> I am enhancing an website made from others.
>
> I want to put a table with this CSS property:
>
> .tooltip table {
> font-size: 9px;
> color: black;
> table-layout: auto; <-------------- useful ?
> width: 20%; <-------------- note this
> }
>
> .tooltip td {
> font-size: 9px;
> color: black;
> }
>
> .tooltip tr {
> font-size: 9px;
> color: black;
> }
>
> note that I "forked" the table width to 20%. But when I show it on the
> browser, that table is *always* at 100% of width (entire screen
> width!).
>
> Why is it doing this?
Wrong newsgroup, try comp.infosystems.www.authoring.stylesheets.
Redirecting ...
PointedEars
| |
| John Hosking 2007-07-30, 6:22 pm |
| Thomas 'PointedEars' Lahn wrote:
> Trap wrote in comp.lang.java script:
Good luck. The best enhancement I can think of based on what's provided
here in c.i.w.a.stylesheets is to stop doing font-size: 9px; as below. :-)
[color=darkred]
I think the usefulness of this tends to depend on the size of the table.
The default is auto, so for a small table I wouldn't bother.
[color=darkred]
I am looking forward to finding out what "forked" means.
[color=darkred]
>
> Wrong newsgroup, try comp.infosystems.www.authoring.stylesheets.
> Redirecting ...
Wondering if there is some HTML to go with this, or, much better yet, an
actual URL?
--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|