Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table with set width and rowspan not respecting width #38

Open
LuisMAlmeida opened this issue Oct 2, 2018 · 0 comments
Open

Table with set width and rowspan not respecting width #38

LuisMAlmeida opened this issue Oct 2, 2018 · 0 comments

Comments

@LuisMAlmeida
Copy link

LuisMAlmeida commented Oct 2, 2018

Hi!

I just ran across a issue where if you have something like this:

<table border='1' style='width:100%;line-height: 100%'>
    <thead>
        <tr>
            <th colspan='2' style='background-color: #0071ce;text-align: left;height:15px;'>
                <font style='color: white;font-weight: bold;' face='Arial'>
                    LANGUAGES SKILLS
                </font>
                <br>
                <font style='color: white;font-weight: bold;' face='Arial'>
                    Alot of text Alot of text Alot of text Alot of text Alot of text Alot of text Alot of text Alot of
                    text Alot of text Alot of text
                    Alot of text Alot of text Alot of text Alot of text Alot of text Alot of text Alot of text Alot of
                    text Alot of text Alot of text Alot of text Alot of text Alot of text
                </font>
            </th>
        </tr>
    </thead>
    <tbody>
        <tr rowspan='2' style='background-color: white;height:15px;'>
            <td style='width:150px;'>
                <font style='font-weight: bold;' face='Calibri'>Text</font>
            </td>
            <td>
                <font face='Calibri'>
                    Text
                </font>
            </td>
        </tr>
    </tbody>
</table>

The cells with rowspan don't apply the width:150px, the text of the header pushes the cell's length

I was able to replicate this is word using a generated document, BUT if you create a table in Word manually with the same structure this doesn't happen

Any insights on this?

Thank you
Luís Almeida

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant