Hi, I've already written a simple XML and CSS file. My aim is to display the information in table form.
For example:
Apple Orange
Watermelon Banana
But i don't know why my codes just simply don't work. Wonder what is the problem.
XML code:
<TABLE>
<ROW>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Apple</para>
</CELL>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Orange</para>
</CELL>
</ROW>
<ROW>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Watermelon</para>
</CELL>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Banana</para>
</CELL>
</ROW>
CSS code:
TABLE { display:table;}
ROW { display:table-row; }
CELL { display:table-cell;}
Instead of printing it in table form, the output i obtained is:
Apple
Orange
Watermelon
Banana
For example:
Apple Orange
Watermelon Banana
But i don't know why my codes just simply don't work. Wonder what is the problem.
XML code:
<TABLE>
<ROW>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Apple</para>
</CELL>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Orange</para>
</CELL>
</ROW>
<ROW>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Watermelon</para>
</CELL>
<CELL ROWSPAN="1" COLSPAN="1">
<para>
Banana</para>
</CELL>
</ROW>
CSS code:
TABLE { display:table;}
ROW { display:table-row; }
CELL { display:table-cell;}
Instead of printing it in table form, the output i obtained is:
Apple
Orange
Watermelon
Banana
Comment