Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Coloured Cells in Tables

10 views
Skip to first unread message

Marcus Edward Hennecke

unread,
May 30, 1995, 3:00:00 AM5/30/95
to
In article <3qfcdk$7...@newsgate.dircon.co.uk>,
Alex Schajer <sch...@dircon.co.uk> wrote:
>I've sussed out how to use tables but does anybody know if it possible to change the background
>colour and the text colour WITHIN a cell??

Not with the current specs. However, it will be possible using style
sheets. In fact, Arena can do it now. Basically, it works by
subclassing the table tags:

<table>
<tr><td class=somename1>This is some red text on blue</td>
<td class=somename2>This is some green text on yellow</td>
</tr>
</table>

and then the style sheet might look like:

td.somename1 : font.color = #F00
td.somename1 : back.color = #00F
td.somename2 : font.color = #0F0
td.somename2 : back.color = #FF0

Check out

http://www.w3.org/hypertext/WWW/Style/css/draft.html
--
Marcus E. Hennecke
mar...@leland.stanford.edu http://www.crc.ricoh.com/~marcush/
For FAQs first check ftp://rtfm.mit.edu/pub/usenet/<name.of.newsgroup>

Bruce Morris

unread,
May 31, 1995, 3:00:00 AM5/31/95
to
>I've sussed out how to use tables but does anybody know if it possible to change the background
>colour and the text colour WITHIN a cell??


No way it can be done using known tools. Except - if you are clever and
your particular need fits the cure you could very carefully build a
background GIF and have your table match the GIF placement. I used this
technique to divide a page into a red left side and a white right side
with 2 columns of text - 1 on the left and 1 on the right. I set things up
so the text is placed carefully over the background no matter the screen
width. This may not work for you but I thought I was a pretty clever
fellow for dreaming it up:

http://nctweb.com/nct/intervie/interlea.html


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
NCT Web Magazine, 451 Blackburn Lane, Lenoir City, TN 37771
The Information Source For People Who Buy Computer Equipment & Supplies
Check us out on the Web with "Over 450 pages of news and reviews"
http://www.awa.com/nct/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

0 new messages