Santy, Michael wrote:
> I'm trying to add a some generated content directly above a Docbook
> table aligned to the left boundary of the table.  This content should be
> allowed to span across the whole table if necessary.  The CSS rule below
> renders the content in the correct location. 
>  
> thead:before {
>   display: table-row;
>   text-align: left;
>   content: row(
>     cell(
>       content("generated content here - it can potentially be quite long"),
>       column-span, 2
>     )
>   );
> }
>  
> This CSS rule does not, however, allow the generated content to span
> across multiple cells.  Is there any way to make the generated content
> span across the whole table while remaining left aligned?

I've modified one of our (XHTML) tests to check this, and it works fine
(sorry but the test is a bit complicated):

---
table.mark3:before, table.mark3:after {
    content: row(cell(" "),
                 cell(content("Column 1 Column 2"), column-span, 2),
                 cell(" "),
                 text-align, center, font-weight, bold, color, olive,
                 padding-top, 2, padding-right, 2,
                 padding-bottom, 2, padding-left, 2,
                 border-width, 1, border-style, inset,
                 border-top-color, gray, border-right-color, gray,
                 border-bottom-color, gray, border-left-color, gray);
    display: table-row-group;
}
table.mark3 thead:before, table.mark3 thead:after {
    content: icon(diamond);
    color: olive;
    padding: 2;
}
table.mark3 tfoot:before, table.mark3 tfoot:after {
    content: icon(filled-square);
    color: olive;
    padding: 2;
}
table.mark3 tr:before, table.mark3 tr:after {
    content: circle;
    color: olive;
    padding: 2;
}
---

See attached screen shot.

May be if you change "display: table-row" to "display: table-row-group",
it will also work fine for you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: colspan2.png
Type: image/png
Size: 3082 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070713/a6b76069/attachment.png
 

Reply via email to