Forum How do I...?

Use colspan to control table cell width instead of inline style attribute

get2coding
Hi, I was trying to resize table cells (both td and th) using the HTML attribute colspan. I saw this thread from 2005, Prince 5.x colspan-Attribute and the solution was to use inline style as follows for setting the width:
<td style="width:100px">

I used this because it is the only way I've been able to set the width.

mikeday wrote:
"We may add support for more HTML presentational attributes to a future version of Prince"


Prince is at version 12.x now, has this support been added so I don't have to use inline style attribute in the HTML?
mikeday
The colspan attribute is not for width exactly, it's an integer that specifies how many columns of the table a particular cell spans. Prince does support this attribute (and also rowspan).