C
Charles Banas
I've seen something like this done before:
A set of tabular data is laid out logically in a table. One item for
each row in the table.
Then, the table is reorganized with CSS so that each row takes on an
entirely different appearance. (As far as I know, it didn't involve any
JavaScript or HTML hacks to do the job - just a simple table.)
On my own project, I've got a table containing news items. The data is
laid out in a tabular fashion with 4 columns: Subject, Date, Poster, Text.
What I want to do is change the layout from a simple row to a simple box
that contains the data in a more visually pleasing arrangement.
For example:
(news)_________________________
NEWS SUBJECT
4/4/04 | Charles
News body text etc., etc.
-------------------------
Where the item is tabulated as:
<table>
<tr>
<td>news subject</td>
<td>4/4/04</td>
<td>Charles</td>
<td>News body text etc., etc.</td>
</tr>
</table>
As far as I've gotten is floating the subject, date, and poster to the
side of the news box, and the body flows around it (poorly). I know I'm
on the right track, I just need a kick in the pants to get moving. I
also need help with setting up outlines and borders in the right places
(such as between the date and poster).
Again, I've seen it done once before, so I know it's possible.
Can I get some help here?
I've googled around for hours looking for the site I stumbled on that
demonstrated something along these lines, but found nothing. It seems
to have been the only site that even referenced an idea like this. I've
also asked elsewhere, but am still awaiting a response. I feel like I'm
being ignored.
(As a side note, the rest of the site is done entirely with <div>s and
CSS layout techniques, but I want to use a table for the purpose it was
created for - tabulated data.)
A set of tabular data is laid out logically in a table. One item for
each row in the table.
Then, the table is reorganized with CSS so that each row takes on an
entirely different appearance. (As far as I know, it didn't involve any
JavaScript or HTML hacks to do the job - just a simple table.)
On my own project, I've got a table containing news items. The data is
laid out in a tabular fashion with 4 columns: Subject, Date, Poster, Text.
What I want to do is change the layout from a simple row to a simple box
that contains the data in a more visually pleasing arrangement.
For example:
(news)_________________________
NEWS SUBJECT
4/4/04 | Charles
News body text etc., etc.
-------------------------
Where the item is tabulated as:
<table>
<tr>
<td>news subject</td>
<td>4/4/04</td>
<td>Charles</td>
<td>News body text etc., etc.</td>
</tr>
</table>
As far as I've gotten is floating the subject, date, and poster to the
side of the news box, and the body flows around it (poorly). I know I'm
on the right track, I just need a kick in the pants to get moving. I
also need help with setting up outlines and borders in the right places
(such as between the date and poster).
Again, I've seen it done once before, so I know it's possible.
Can I get some help here?
I've googled around for hours looking for the site I stumbled on that
demonstrated something along these lines, but found nothing. It seems
to have been the only site that even referenced an idea like this. I've
also asked elsewhere, but am still awaiting a response. I feel like I'm
being ignored.
(As a side note, the rest of the site is done entirely with <div>s and
CSS layout techniques, but I want to use a table for the purpose it was
created for - tabulated data.)