Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Changing table appearance with CSS
- Charles Banas
April 8, 2004, 4:42 am
rate this thread
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
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.
4/4/04 | Charles
News body text etc., etc.
Where the item is tabulated as:
<td>News body text etc., etc.</td>
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
(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.)
Re: Changing table appearance with CSS
I was quite awake. My pulse was also about 86, as I recall.
Really! And here I thought it was common knowledge!
That's exactly it! Though, I thought the clear property was ignored
without an accompanying float property? Boy, I *must* be sleeping.
Thanks for the help!
As an aside, are you aware of a site that demonstrates this?
Particularly, I recall the page was prefixed with a breif treatise: "I
learned that tables were not to be used for layout, but for tabulated
ata instead. So I researched ways to use tables in different ways." Or
Then he showed a table with a list of Opera skins, followed by the same
table styled similar to wat you've just shown me.
I'm aching to find that site again, as it probably has more ideas I
missed and want to learn from.
Anyway, thanks again!
-- Charles Banas
- » for mscir....others looking for help on desiging basic layout with css
- — Previous thread in » HTML Markup Language