Skip to content

text-align is not applied #158

@sinaeftekhar

Description

@sinaeftekhar

Try this simple html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Paper-Muncher Margin Test</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 40px; /* Page margin */
    }

    /* Block element centered */
    .centered-box {
      width: 200px;
      height: 100px;
      background-color: lightblue;
      margin: auto; /* Should center horizontally */
      text-align: center;
      line-height: 100px;
    }
  </style>
</head>
<body>

  <h1>Margin Auto Test</h1>

  <div class="centered-box">
    Centered Box
  </div>
</body>
</html>

This would generate a centered box, while the pdf ignores the text-alignment:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions