[Fixed]-Paragraph element prepending not appending to table in django html

1👍

You can’t use <p> inside a <tr> only <td> and <th> are allowed.

You’d want to change it to:

<div class="1" style="overflow-x:auto;">
    <table id="1" class="1">
        <tr>
            <th>Heading 1</th>
            <th>Heading 2</th>
        </tr>
    {% ifequal variable "0" %}
        </table>
        <p>No items to show</p>
    {% else %}
        <--append some fields-->
    {% endifnotequal %}
</div>

This question might be helpful for you too

0👍

It seems that you’re not doing this correctly. I think there is a tag for putting text below tables, could it be ?

Use the tag at the end (this is a table specific tag, like and ).

But you will need to use this CSS:

caption {
    caption-side: bottom;
}

You can check this codepen:

https://codepen.io/anon/pen/XMzPjb

👤madtyn

Leave a comment