22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TABLE { background: #ff0; border-collapse: collapse }<br />

TD { background: red; border: double black }<br />

<br />

<br />

<br />

<br />

<br />

<br />

1<br />

2<br />

3<br />

4<br />

<br />

<br />

<br />

<br />

<br />

might be formatted as follows:<br />

1 2 3 4<br />

Table with three empty cells in the bottom row.<br />

17.5.2 Table width algorithms: the ’table-layout’ property<br />

CSS does not define an "optimal" layout for tables since, in many cases, what is<br />

optimal is a matter of taste. CSS does define constraints that user agents must<br />

respect when laying out a table. User agents may use any algorithm they wish to<br />

do so, and are free to prefer rendering speed over precision, except when the<br />

"fixed layout algorithm" is selected.<br />

’table-layout’<br />

Value: auto | fixed | inherit<br />

Initial: auto<br />

Applies to: ’table’ and ’inline-table’ elements<br />

Inherited: no<br />

Percentages: N/A<br />

Media: visual<br />

The ’table-layout’ property controls the algorithm used to lay out the table cells,<br />

rows, and columns. Values have the following meaning:<br />

fixed<br />

Use the fixed table layout algorithm<br />

auto<br />

Use any automatic table layout algorithm<br />

256

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!