HighDots Forums  

Table

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Table in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Table - 02-29-2008 , 07:52 AM






Hello,

I have a table with 3 columns and I am using the usual header, footer
and body sections.

The first column has only an input (check box).

Is it possible to make column 1 and 3 fixed width and column 2 get the
remaining width?

Thank You,
Miguel

Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: Table - 02-29-2008 , 04:29 PM






On 2008-02-29, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Quote:
Hello,

I have a table with 3 columns and I am using the usual header, footer
and body sections.

The first column has only an input (check box).

Is it possible to make column 1 and 3 fixed width and column 2 get the
remaining width?
Yes. Just set the total width you want on the whole table (which might
be a percentage), and then set the fixed widths you want on cells in
columns 1 and 3.


Reply With Quote
  #3  
Old   
shapper
 
Posts: n/a

Default Re: Table - 03-01-2008 , 08:43 PM



On Feb 29, 10:29 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote:
Quote:
On 2008-02-29, shapper <mdmo... (AT) gmail (DOT) com> wrote:

Hello,

I have a table with 3 columns and I am using the usual header, footer
and body sections.

The first column has only an input (check box).

Is it possible to make column 1 and 3 fixed width and column 2 get the
remaining width?

Yes. Just set the total width you want on the whole table (which might
be a percentage), and then set the fixed widths you want on cells in
columns 1 and 3.
Ben,

You mean in tbody cells? td?
I am asking because I added col tags to the table and defined the
widths in it but it does not work.

I was reading about cols and it seemed the logical solution.

Thanks,
Miguel


Reply With Quote
  #4  
Old   
Ben C
 
Posts: n/a

Default Re: Table - 03-02-2008 , 03:16 AM



On 2008-03-02, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Quote:
On Feb 29, 10:29 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote:
On 2008-02-29, shapper <mdmo... (AT) gmail (DOT) com> wrote:

Hello,

I have a table with 3 columns and I am using the usual header, footer
and body sections.

The first column has only an input (check box).

Is it possible to make column 1 and 3 fixed width and column 2 get the
remaining width?

Yes. Just set the total width you want on the whole table (which might
be a percentage), and then set the fixed widths you want on cells in
columns 1 and 3.

Ben,

You mean in tbody cells? td?
I am asking because I added col tags to the table and defined the
widths in it but it does not work.

I was reading about cols and it seemed the logical solution.
To set the width of a column you just set width on any (non-colspanning)
<td> in that column.

Setting different widths on <td>s in the same column is illogical since
all the cells in a column will always have the same width. If you do
that most browsers will assume the maximum of the widths you set in a
column is the one you want.

Don't bother with col or colgroup elements. I don't think they work in
Firefox. They're a bit of a throwback to the days before CSS as a crude
way to apply presentation to multiple elements at once (CSS selectors do
that job nowadays).


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.