Tables in html tag on, won't stack

7 views
Skip to first unread message

Kean

unread,
Aug 16, 2019, 1:15:20 PM8/16/19
to Django users
Hi,

Ive created a table which returns all my data in my.html template.

However, the problem is the second record tags onto the end of the first, instead of wrapping,

i.e/

pk     Name   Surname  pk  Name  Surname
1       John     Smith       2    Jane   Smith 

instead of/

PK    Name   Surname
1       John    Smith 
2       Jane    Smith 


Please advise if there is a simple way to wrap the records so they fully stack?

Best,

K

Rax Otero

unread,
Sep 2, 2019, 9:40:14 AM9/2/19
to django...@googlegroups.com
Hi,
Can I see how you structured your table?

Best wishes,
Rax

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0703c711-63cc-4668-90c6-4606294d9148%40googlegroups.com.

Kean

unread,
Sep 2, 2019, 10:21:55 AM9/2/19
to django...@googlegroups.com
Hi Rax,

This was an html issue for me in the end, in how the was table row and table data were coded.
I resolved by coding in this way, and then data was listed.
<tr>
<td>{{ item.name }}</td>
<td>{{ item.surname }}</td>
</tr>
Thank you for offering to help.

Best,

K
Reply all
Reply to author
Forward
0 new messages