12345678
Cells:
- in first column (green) width:40px, padding-right:20px, border-right:10px
- in second column (blue) width:20px, border-right:10px
Tables:
- first normal,
- second 'fixed',
- third with divs inside (width moved on those),
- fourth has (total) width on cols,
- fifth has first row with cells with total width (no padding, no border) and height 0,
- sixth's cells have border-box,
- seventh's cells have content-box,
- eighth has border-collapse: collapse
Results: width on cell (td) is interpreted as:
- content-box width in: IE/Win/auto, IE/Win/fixed/standards, Gecko 1.4+, Op6+, Saf3
- border-box width in: IE/Win/fixed/quirks, IE5/Mac, Op9.5 with border-box
Divs:
- first set 'normal',
- second with content-box,
- third with padding-box,
- fourth with border-box.
Default is:
- content-box: Gecko, IE/Win/standards, Op9, Op7-8/standards, Saf, IE5/Mac/standards
- border-box: IE/Win/quirks, IE5/Mac/quirks, Op7-8/quirks
Related: