Skip to content

Table Layot | Fixed cell height breaks layout if smaller than content

See example bellow

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style>
        @page {
            size: 210pt 210pt;
            margin: 5pt;
        }
        html, body {
            font-size: 5pt;
            padding: 0;
            margin: 0;
        }

        table, td, th {
            border: 1pt solid black;
            border-collapse: collapse;
        }

        td {
            font-size: 20pt;
            line-height: 20pt;
            height: 15pt;
        }


    </style>
</head>
<body>
    <table>
        <tbody>
            <tr>
                <td>A A</td>
                <td>B B</td>
                <td>C C</td>
            </tr>
        </tbody>
    </table>
</body>
</html>
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information