styling tables in django

31 views
Skip to first unread message

Kean

unread,
Aug 31, 2019, 6:51:02 PM8/31/19
to Django users
Hi,

New to Django, appreciate the guidance,

I'm looking to style template so both header and data records are note wrapped.
please see current setup.

Please can anyone help with the template code, appreciate, it's not quite django, but more bootstrap4 django.

Best,
K





Screen Shot 2019-08-31 at 23.46.00.png

Jani Tiainen

unread,
Sep 1, 2019, 6:17:54 AM9/1/19
to django...@googlegroups.com
Hi.

Templates are just a text and very common thing is to render templates as html.

So there is no magic involved what comes to styling. It is just CSS which would make your tables styled. And that is beyond Django.

If you want to use CSS file as included as a link in html header part there exists small magic which comes into play  - static files.

Django Girls tutorial also have quite nice part about styling that you might want to read.

If

--
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/ec35ddf7-12ff-47cc-a41e-4b6736faed22%40googlegroups.com.

Kean

unread,
Sep 1, 2019, 3:58:31 PM9/1/19
to django...@googlegroups.com
Thanks Jani,

I will look at the tutorial.

Best,

K
Reply all
Reply to author
Forward
0 new messages