On Dec 3, 2006, at 4:51 AM, Ian Piper wrote:

> Why can I create a background for a <tr> element but not a border. It
> seems a reasonable thing in a data table to be able to enclose all of
> the cells in a row in a single border, but although this does not
> throw up any errors, it also doesn't display.
>
> I am simply doing this in my style sheet:
>
> tr {
>       border: 1px solid #000000;
> }

It all depends whether your table is styled with {border- 
collapse:separate;} or {border-collapse:collapse;}
Example:
<http://dev.l-c-n.com/tables_4/table-border.php>

the <tr> has a 2px solid lime border.

Oh, and: it doesn't work correctly in IE Windows

Read a bit on the subject:
<http://www.w3.org/TR/CSS21/tables.html#borders>

-0---
Tr {display:block} makes a complete mess out of a table in decent UA  
and doesn't solve anything.
<http://dev.l-c-n.com/tables_4/table-border2.php>

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




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to