TJ wrote:
Quote:
Looks like tabular data. Use a table.
There seems to be a bit of uncertainty as to which side of the dotted line
the html table tag falls... when and how it is used. In my application, I
was trying to avoid table cells for two reasons - because of a few
articles from people screaming that tables shouldn't be a part of a
presentation that is formatted with CSS... |
The message has got a bit muddled I'm afraid. Somehow "Don't use tables for
layout" has suffered from Chinese Whispers and become "Don't use tables".
HTML should be used to describe the data and its relationship to other data.
In the case of data which can be divided in to rows and columns with
specified meaning (e.g. Each row contains cells representing days which are
part of the same week. Each column contains cells representing the same day
of different weeks.) Then a table is the correct HTML to describe the
relationship.
It is tables which don't describe such a relationship that should be avoided
(this top cell, which spans 3 columns, contains the page header. The first
and last cells of the next row contain side bars, and the middle contains
the actual page content).
Quote:
and because i wasn't planning on always presenting a finite number of
cells for a given calendar month. |
I don't think it is possible to have an infinite number of days in a
month
Quote:
The span tag allowed me to do both - not use tables and to not know the
number of cells. |
You could use a script to generate the table for the current month. There
are probably dozens out there prewritten. I believe that Word Press
includes some PHP code that does it and that you can use under a Free
license.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is