Forum Bugs

column-span not working

massifr
I'm formatting XML, not HTML, with prince 6 and 7beta, but I can't get the column-span property work properly.

In my DTD, there's an element <tc> which means "table-cell" and it has an attribute "colonne" whose meaning is "column-span". Here's a fragment of my CSS:

tc {
display: table-cell;
text-align: left;
padding: 2pt;
}

tc[colonne="2"] {
column-span: 2;
}

tc[colonne="3"] {
column-span: 3;
}

The attribute "colonne" seems to be ignored, I always get a 1-column spanning cell.
mikeday
Try the table-column-span property.
massifr
Thanks, now it works.

I apologize for not having looked at
http://www.princexml.com/doc/7.0/properties/
where there's no "column-span" property.

I was misleaded by the example at
http://www.princexml.com/doc/7.0/tables/
section "Cells that span columns", where you talk about the "column-span" CSS property.

I've seen it is a question already on the roadmap:
http://www.princexml.com/bb/viewtopic.php?t=2080
Perhaps you should correct the page about tables once the question becomes defined.
mikeday
You're absolutely right, the tables documentation is incorrect and misleading, and has now been corrected.

In future the "column-span" property will be repurposed to allow elements to cross multiple columns in multi-column layouts, which is not related to tables. This is what the other question on the forum was referring to.
jim_albright
So will I be able to create a DIV with IMG inside that spans 2 columns? Is that possible now?

Jim Albright
Wycliffe Bible Translators

mikeday
Not yet, but in the future. :)