Brian <us*****@julietremblay.com.invalid> wrote:
mi**********@gmail.com wrote:
Is there a CSS or HTML setting that indicates the color of the spaces
between cells in a group?
Set a background-color for the table, then set border-collapse:
separate; and border-spacing to whatever you want.
You could also use <table bgcolor="..."> instead of the CSS property; I'm
not saying you should, just mentioning an HTML answer since this is an
HTML group. Generally, there's not much practical difference between
setting such colors using presentational HTML attributes and setting them
in CSS, but it's probably a good idea to choose _one_ of the approaches.
That is, if you set e.g. cell background colors in HTML, use HTML for the
table background color too.
But I guess Miko (is it really you Miko? long time no see) might have
been asking whether it is possible to set one color for the spaces
between cells in one group (say, for header cells inside <thead>) and
another color for the spaces between cells elsewhere in the table. I'm
afraid this is not possible (except in the sense that you could simulate
it using tricky nested tables), since the spacing between cells "belongs"
to the <table> element, not to any inner element (including <thead>). One
might say that e.g. a table row consists of the cells only, not of the
spacing between them, so that physically a row is non-contiguous in this
sense (if the spacing is nonzero). Similarly, you cannot set the amount
of spacing between cells different for different parts of the table (but
you might achieve the desired effect by using padding instead).
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html