Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26810

    Hi,I’ve been troubleshooting a problem about td’s border.
    Here is the html code:

    <tr valign="top">
    <td style="width: 25pt; height: 1pt;"></td>
    <td colspan="38" style="border-top-style: solid; border-top-width: 1pt; border-top-color: #000000; "></td>
    <td colspan="5" style="width: 70pt; height: 1pt;"></td>
    </tr>

    After converted to pdf,the middle td’s border is not displayed.
    The html code is a legacy code,so i cannot modify the code.
    So,how to convert this html to pdf to display the border?
    Thanks in advance.

    #29200

    Try to add some content to the row cell:

    <tr valign="top">
    <td style="width: 25pt; height: 1pt;"></td>
    <td colspan="38" style="border-top-style: solid; border-top-width: 1pt; border-top-color: #000000;"><font style="font-size: 2px"> </font></td>
    <td colspan="5" style="width: 70pt; height: 1pt;"></td>
    </tr>

    Otherwise it optimises the table and ignores rows with no content.

    #29201

    @PD4ML wrote:

    Try to add some content to the row cell:

    <tr valign="top">
    <td style="width: 25pt; height: 1pt;"></td>
    <td colspan="38" style="border-top-style: dashed; border-top-width: 1pt; border-top-color: #000000;"><font style="font-size: 2px"> </font></td>
    <td colspan="5" style="width: 70pt; height: 1pt;"></td>
    </tr>

    Otherwise it optimises the table and ignores rows with no content.

    while solid change to dashed,it doesn’t work

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.