On Jul 23, 2007, at 9:58 PM, Mohsen Saboorian wrote:

> How can I force a table to have fixed size (width) cells using CSS
> (suppose you don't know how many columns a table may have).

table {table-layout:fixed;}

You should also assign a width to your table:  otherwise, in some  
browser, the table will take the width of the parent block; in  
others, the table will shrink wrap. Both behaviours are perfectly  
acceptable.
If you work with a liquid layout, the contents of the cells may start  
overlapping at very narrow width.

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to