danfickle / danfickle/openhtmltopdf

Table cell percentage widths are rounded

Open
#540 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

It seems like widths for table cells are rounded down when specified as a percentage.
In the following example, the 'AAAA' column in the first two tables has the same width:
```html


table { width: 100%; }
td { border: 1px solid red; }

AAAABBBBCCCC
AAAABBBBCCCC
AAAABBBBCCCC

```
This also happens when using `display:table`, `table-row` and `table-cell` styles. It does not happen with `inline-blocks`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.