Admin help class CSS

37 views
Skip to first unread message

Mike Dewhirst

unread,
Dec 10, 2020, 9:35:45 PM12/10/20
to Django users
I'm a CSS dunce so please point me in the right direction (docs or
whatever) to figure out how to adjust table layout in Admin help_text.

The table displays properly but is too greedy with screen real-estate. I
want to reduce table padding and cell separation. I copied the following
from the view source page and is what I want to tweak with CSS ...

<div class="help">
Blah blah ... the following:
<table>
<tr><td>aluminium</td><td>bromine</td></tr>
<tr><td>zirconium</td><td>&nbsp;</td></tr>
</table>
</div>

There are actually a few more rows between bromine and zirconium but I
chopped them for brevity.

Thanks

Mike


OpenPGP_signature

Joash Monda

unread,
Dec 11, 2020, 10:36:42 AM12/11/20
to django...@googlegroups.com
Can we work together Sir.

On Fri, Dec 11, 2020, 17:57 Joash Monda <mondaj...@gmail.com> wrote:
Hello mike got your problem...

--
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/df20d08c-42fb-2d43-cbe8-7edcd186b277%40dewhirst.com.au.

Joash Monda

unread,
Dec 11, 2020, 10:36:42 AM12/11/20
to django...@googlegroups.com
Hello mike got your problem...

On Fri, Dec 11, 2020, 05:35 Mike Dewhirst <mi...@dewhirst.com.au> wrote:

Mike Dewhirst

unread,
Dec 11, 2020, 4:58:28 PM12/11/20
to django...@googlegroups.com
Joash

By all means. If I wasn't entirely clear, I am using html inside model.field help_text - which works nicely in the Admin for <em> and <strong> and the like.

The mission is to design <td> CSS styling to reduce padding and remove cell boundaries and adjust colours. I need to offer sophisticated styled "help" for decision support for users.

I can adjust normal help_text font styling in the Admin by inserting my own css stylesheet which appears after all the Django stylesheets except responsive.css.

My real problem is CSS brainspace. 

Thanks for any ideas

Cheers

Mike


--
(Unsigned mail from my phone)

Larry Martell

unread,
Dec 11, 2020, 5:01:27 PM12/11/20
to django...@googlegroups.com
If you have a pure CSS question, this list can be very helpful:

https://www.css-discuss.org/mailman/listinfo/css-d/

Mike Dewhirst

unread,
Dec 11, 2020, 10:59:15 PM12/11/20
to django...@googlegroups.com
Thank you Larry ... I'll give it a try - although I suspect it will need a Django guru because it is deep in the admin and possibly protected from ordinary fiddling.
--
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.
Reply all
Reply to author
Forward
0 new messages