On Apr 28, 2006, at 1:17 PM, Kevin Futter wrote:

a de facto heading. I'd hoped to be able to group them via the <tbody> element, but find myself completely unable to style them. I'm trying to
apply a border to the <tbody> sections, but it only works if
border-collapse is set to collapse, otherwise I get nothing (but the table then ignores the padding applied to its parent element). If I apply a
border style to the individual <td>s, it negates the <tbody> border
altogether.

Let's just say that I'm confused and frustrated :-)

Hi Kevin,

The problem is because <tbody> doesn't have a border attribute. For more info
on this (or any other tags):

http://www.w3schools.com/tags/tag_tbody.asp

But I'm not using an HTML attribute (<tbody border="1">), I'm using CSS
(tbody { border: 1px solid #CCC; }), and as far as I was aware, all
block-level elements were suitable targets for CSS borders. Are you
suggesting that if an element doesn't have an HTML border attribute, it
can't be styled with the equivalent CSS?

tbody can perfectly well take a (css) border, as long as the table is set to border-collapse:collapse.
And it does not work in iExploder.
td/th/tr is painted on top of tbody (rowgroup), assuming a same width border on both elements, then the border on tbody won't be visible. [1]

A little painting exercise: <http://dev.l-c-n.com/tables-4/table- border.php>

[1] <http://www.w3.org/TR/CSS21/tables.html#table-layers>


Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>



******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to