Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Changing table appearance with CSS

 
Thread Tools Search this Thread
Old 04-08-2004, 05:42 AM   #1
Default Changing table appearance with CSS


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.)


Charles Banas
  Reply With Quote
Old 04-08-2004, 06:09 AM   #2
Mark Parnell
 
Posts: n/a
Default Re: Changing table appearance with CSS

On Wed, 07 Apr 2004 22:42:28 -0600, Charles Banas <> declared
in alt.html:

> I've seen something like this done before:


Maybe. It might have been a bad dream.

> A set of tabular data is laid out logically in a table.


*Gasp*! No! Unheard of.

> (news)_________________________
> NEWS SUBJECT
> 4/4/04 | Charles
> News body text etc., etc.
> -------------------------


Something like this?
http://www.clarkecomputers.com.au/usenet/tables.asp

--
Mark Parnell
http://www.clarkecomputers.com.au
  Reply With Quote
Old 04-08-2004, 06:44 AM   #3
Charles Banas
 
Posts: n/a
Default Re: Changing table appearance with CSS

Mark Parnell wrote:

> On Wed, 07 Apr 2004 22:42:28 -0600, Charles Banas <> declared
> in alt.html:
>
>
>>I've seen something like this done before:

>
>
> Maybe. It might have been a bad dream.
>


I was quite awake. My pulse was also about 86, as I recall.

>>A set of tabular data is laid out logically in a table.

>
>
> *Gasp*! No! Unheard of.
>


Really! And here I thought it was common knowledge!

</sarcasm>
</joking>

>>(news)_________________________
>> NEWS SUBJECT
>> 4/4/04 | Charles
>> News body text etc., etc.
>> -------------------------

>
>
> Something like this?
> http://www.clarkecomputers.com.au/usenet/tables.asp
>


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
something.

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
  Reply With Quote
Old 04-08-2004, 06:50 AM   #4
Charles Banas
 
Posts: n/a
Default Re: Changing table appearance with CSS

Charles Banas wrote:
> Mark Parnell wrote:
>
>> Something like this?
>> http://www.clarkecomputers.com.au/usenet/tables.asp
>>

>
> That's exactly it! Though, I thought the clear property was ignored
> without an accompanying float property? Boy, I *must* be sleeping.
>

We have confirmation. I *AM* sleeping. I completely missed the
inheritance. Ignore that part.

--
-- a sleeping developer
  Reply With Quote
Old 04-08-2004, 06:58 AM   #5
Mark Parnell
 
Posts: n/a
Default Re: Changing table appearance with CSS

On Wed, 07 Apr 2004 23:44:26 -0600, Charles Banas <> declared
in alt.html:

> As an aside, are you aware of a site that demonstrates this?


No, can't say I've come across one. Sorry.

--
Mark Parnell
http://www.clarkecomputers.com.au
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump