Skip to content

A block inside a table cell takes the cell's alignment, so <td><p align="right"> is not right-aligned #664

Open

Description

@jakejackson1

A block inside a table cell takes the cell's alignment, in both cssModes. Neither the block's align attribute nor its text-align changes it.

<table width="100%"><tr><td><p align="right">RR</p></td></tr></table>
<table width="100%"><tr><td><p style="text-align: right">RR</p></td></tr></table>

Both draw RR at the left of the cell. Outside a table, <p align="right"> is right-aligned. Reproduced on gravitypdf at 5be2e92.

Found in #641.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions