PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.CSS > Table
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Table

Réponse
 
LinkBack Outils de la discussion
Vieux 29/02/2008, 13h52   #1
shapper
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Table

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
  Réponse avec citation
Vieux 29/02/2008, 22h29   #2
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Table

On 2008-02-29, shapper <mdmoura@gmail.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.
  Réponse avec citation
Vieux 02/03/2008, 02h43   #3
shapper
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Table

On Feb 29, 10:29 pm, Ben C <spams...@spam.eggs> wrote:
> On 2008-02-29, shapper <mdmo...@gmail.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
  Réponse avec citation
Vieux 02/03/2008, 09h16   #4
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Table

On 2008-03-02, shapper <mdmoura@gmail.com> wrote:
> On Feb 29, 10:29 pm, Ben C <spams...@spam.eggs> wrote:
>> On 2008-02-29, shapper <mdmo...@gmail.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).
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h05.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20490 seconds with 12 queries