Header cell alignment via CSS is ignored
My CSS code for the header seems to be ignored, when generating the PDF using doc.autoTable({ html: '#my_id table', useCss: true })
The CSS (less) code is quite simple:
table {
width: 100%;
height: auto;
display: block;
th, td {
text-align: center;
width: 100%;
padding: 8px;
}
}
THis is how it looks like on my Page:

This is how it looks like in the PDF:

My header columns text are not aligned properly if the table has more data

Its is not aligned properly is there any text-wrap property available
I'm seeing similar behavior to this in which text wrap breaks in the middle of words instead of between words. This issue appears to be going on a year without response. Any updates?
If you create a PR adding support for it @bhamscott I can review it promptly.
If you create a PR adding support for it @bhamscott I would review it promptly.
Thanks! I've had a brief look through the code but I don't yet see an obvious refactor to resolve this. Have you done any work on this to suggest a viable approach?
I have offered a suggested approach to fix the issue in the issue thread I started. Take a look and perhaps we can discuss it there. I'm willing to give it a shot if you think its doable and can perhaps give me some direction based on your prior work here.
@SathishRavichandran @eighties8 What are your thoughts about this?