Forms / pages and CSS like Django admin

136 views
Skip to first unread message

Daniel Grace

unread,
Nov 6, 2014, 10:51:29 AM11/6/14
to django...@googlegroups.com
Hi,
OK, I know how to import CSS into a template.  I would like to get forms / pages that look like those on Django admin site.  What is a good strategy to achieve this? Copy the CSS?  Looking at "inspect element" in Google Chrome I see that the styling on the forms in the Django admin site do not always use tables.  In particular I would like the same fonts and table styling as on the admin pages.  So how do I get alignment of elements, so the left of the form inputs or fields are horizontally aligned?  I am aware of CSS and HTML tables, but not sure about other ways of achieving a form layouts.
Thanks

Aliane Abdelouahab

unread,
Nov 6, 2014, 10:17:50 PM11/6/14
to django...@googlegroups.com
here?

If you like the widgets that the Django Admin application uses, feel free to use them in your own application! They’re all stored in django.contrib.admin.widgets.
Reply all
Reply to author
Forward
0 new messages