Viewing 1 replies (of 1 total)
  • Plugin Author Johann Heyne

    (@jonua)

    There are two ways to solve…

    1. with styles…

    give your tables a class name…

    echo '<table border="0" class="my-table">';

    then define styles for the first, second <td> etc.

    .my-table td:nth-child( 1 ) {
        width: 30%;
    }
    .my-table td:nth-child( 2 ) {
        width: 70%;
    }

    2. with the <colgroup> element…

    https://www.w3schools.com/tags/tag_colgroup.asp

Viewing 1 replies (of 1 total)
  • The topic ‘Set widths on td’ is closed to new replies.