table issue, centered column not possible, when text in other columns
am 01.09.2007 21:24:18 von joes
Hello
I have strange issue with tables. I like to have table with 3 columns
where the middle column is fixed an the other 2 columns are relative,
using the rest max width. Effect is that the middle area is centered.
So far no issue, Example
When I like to add some text in the first column " T E X T", the
column width is "exploding" so that the centered column moves to right
and the last column is shrinked nearly to nothing.
I noticed this issue in IE 6.0 and also in FireFox 2. Can anyone
explain what here is happing and why the first and last column are not
longer sharing the rest of the space so that the middle column appears
centered?
Any idea to reach such a design that I can position the " T E X T"
right aligned to the centered column so that when the size of the
browser changes it stills aligned centered?
i.e.
many thanks in advance
regards
joes
Re: table issue, centered column not possible, when text in other columns
am 01.09.2007 23:35:08 von dorayme
In article
<1188674658.268032.18170@50g2000hsm.googlegroups.com>,
joes wrote:
> Hello
>
> I have strange issue with tables. I like to have table with 3 columns
> where the middle column is fixed an the other 2 columns are relative,
> using the rest max width. Effect is that the middle area is centered.
> So far no issue, Example
>
>
> |
> centered column |
> |
>
>
Columns mostly have different priorities to us. They listen
foremost to the demands of their contents. Your type of snippet
in more context:
"http://www.w3.org/TR/html4/strict.dtd">
Question
A whole lot of words, some big like
antidisestablishmentarianism and other things? |
centered column |
tiny |
I have replaced your width instruction with a css one. It is more
correct in this context.
What you see as a default when you have minimal content is not an
indication of what to expect generally. It is not how tables
work.
If you are wanting to layout a webpage rather than exhibit some
relationships as in your average spreadsheet, then there are
quite a few ways to go to get what you want. Google for "3 column
layouts CSS".
--
dorayme
Re: table issue, centered column not possible, when text in other columns
am 02.09.2007 06:26:53 von Neredbojias
Well bust mah britches and call me cheeky, on Sat, 01 Sep 2007 19:24:18 GMT
joes scribed:
> I have strange issue with tables. I like to have table with 3 columns
> where the middle column is fixed an the other 2 columns are relative,
> using the rest max width. Effect is that the middle area is centered.
> When I like to add some text in the first column " T E X T", the
> column width is "exploding" so that the centered column moves to right
> and the last column is shrinked nearly to nothing.
You'll never do it with tables. Tables have a mind of their own, even if
you set explicit widths on columns.
The alternative is css. If you're unfamiliar with css, you'll have to
learn the basics, then search for examples of columnar layouts. They're a
bit tricky, but if you _really_ want such a layout, you will prevail.
--
Neredbojias
Half lies are worth twice as much as whole lies.