THIS IS DOC ON TABLES: HTML FIRST, LAYOUT SECOND, CSS LAST IF AT ALL. ========================================================== http://css-tricks.com/complete-guide-table-element/ http://www.w3.org/TR/CSS21/tables.html http://www.quirksmode.org/css/css2/columns.html HTML ===================== Normal
: has no effect on visual layout, only semantic/screen-readers
TFOOT: must be decl before TBODY, yet is rendered (printed) after TBODY.
Is there any point in using these?
Pro1: these are "semantic" markup.
In fact in "mystudents.php" pic gallry of my students, I have designed the
tables to have a row at the top with a menu and spanning all cols; and a row
at the bottom with many buttons, and spanning the cols.
So yes: I spontaneously in fact had a row diff. for the main rows in both top
and bot. So semantic diff. is a common one.
Pro2: and in that file, I have a coding problem of how to get some CSS and JS
code to treat those rows differently.
Con1: But even if I used TFOOT etc. I would still have to write all the code
to pick them out etc.: so it in fact would just be extra work, no gain.
Pro3: Only strong case would be if I had a lot of diff. tables which all had
the same style treating the top/bot rows differently from other rows, but the
same in each table. Then and only then would it be possible to write code in
one place but active in many.
------------
COLs: , then divide width
equally over cols.
WHAT DETERMINES TABLE SIZE (WIDTH)?
It prefers not to wrap text in cells.
(word-break: and display: and white-space: can affect this,
preventing wrap anyway or forcing wrap)
It prefers IMGs full/natural size but no more??
It prefers to fit table into 100% of window / container.
Set widths
set max-widths
word-breaking.
Including not being able to break single words that are too long.
Overflow: setting -- apparently not an influence
W/o IMG max-width:100%, the table goes over 100%
But doing this on FORM for btn row don't work.
[diff. issue: <100% / 100% / >100%]
| |