Forum Bugs

Table spanning to four columns

jsweetman
Hi

I have a table inside a div element that i want to make spread over two columns. Unfortunatly Prince seems to be generating four columns instead of two. Here is my code:

In the html:

<div id="represponsibilities">
<table>
<tr>
<th colspan="2">Repair</th>
<th colspan="2">Responsibility</th>
</tr>
...etc...
</table>
</div>

In the CSS:

#represponsibilities {
column-count: 2;
}

Any ideas why this might be happening?

Cheers

<><

mikeday
I'm not quite sure exactly what kind of layout you are trying to create for your document. Does your table have two columns, like this:
Col1 | Col2
-----------
 ABC | DEF
 ABC | DEF

And then you want to break the table up over two more columns, like this:
Col1 | Col2   Col1 | Col2
-----------   -----------
 ABC | DEF     ABC | DEF
 ABC | DEF     ABC | DEF

Your table has two cells that both have colspan="2", do you have four cells in every row after that?

(Note that the column-count property controls multi-column layout, which is different from table columns).
jsweetman
Hi

Sorry - that wasn't very clear.

My first row has two columns and then every row after has four columns.

That is exactly how i want to break up the table (although obviously it will be four columns spread out into eight columns). So this is how I want it to look:

Col1 | Col2 | Col3 | Col4   Col1 | Col2 | Col3 | Col4
-------------------------   -------------------------
 ABC | DEF | GHI | JKL     ABC | DEF | GHI | JKL
 ABC | DEF | GHI | JKL     ABC | DEF | GHI | JKL


However, when I try to apply the css this is what prince outputs:

Col1|Col2|Col3|Col4Col1|Col2|Col3|Col4Col1|Col2|Col3|Col4Col1|Col2|Col3|Col4
--------------------------------------------------------------------------------------------------
ABC|DEF|GHI|JKLABC|DEF|GHI|JKLABC|DEF|GHI|JKLABC|DEF|GHI|JKL
ABC|DEF|GHI|JKLABC|DEF|GHI|JKLABC|DEF|GHI|JKLABC|DEF|GHI|JKL


(sorry about the lack of spaces i was trying to avoid wordwrap)

<><

jsweetman
I notice that you have brought out a new release of Prince trying to fix my problem! That was a very quick response - thank you. Unfortunately I still seem to be getting the same error, even after installing the new version. Is there anything I can provide for you that would help to find the problem?

<><

mikeday
It's been five years, I'm hopeful that Prince 8.0 will have solved this issue, now. :)