[thelist] Accessing table cell properties with CSS?

Gary Bland Gary at star-chaser.com
Tue Jul 2 14:56:00 CDT 2002


James Aylard wrote:

>     CSS does have a way to enforce the widths of table cells, using the CSS
> 2 property "table-layout" with a value of "fixed", e.g.:
>
> <style type="text/css">
>   table {
>     table-layout: fixed ;
>   }
>   #td1 {
>     width: 298px ;
>   }
> </style>
>
You don't have to use fixed to enforce your cell size. You can use auto
as long as the give a mim-width: and a max-width: for the cells.

http://www.w3.org/TR/REC-CSS2/tables.html#auto-table-layout

gary








More information about the thelist mailing list