Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories


I have a table with WTForms fields on each row. I can't seem to make the row height smaller in anyway.
It works when using regular html input tag but not with these WTForms StringFields. Any idea how to do this?
Thank you!

<table class="table table-hover table-sm table-striped">
    <thead class="thead-dark" align="center">
        <tr>
            <th colspan="2">Contact info</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>{{ render_field(form.company, size=40) }}</td>
        </tr>
    </tbody>
</table>
question from:https://stackoverflow.com/questions/65945833/flask-wtforms-adjusting-field-height-when-using-inside-table

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
486 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...