Friday, May 15, 2020

Re: CSS with Django forms

Thankyou so much Devansh!! This is really very helpful.

On Friday, 15 May 2020 19:46:51 UTC+5:30, Devansh Chaubey wrote:
Hey Anubhav 
You can use django-widget-tweaks package 
https://pypi.org/project/django-widget-tweaks/ 
See this.
You can make own css styling using class on forms.

On Fri, 15 May 2020 at 00:10, Anubhav Madhav <anubhav...@gmail.com> wrote:
Thankyou Clive!! I know I can use CSS like that, but if I do that the problem I'll face is that the 'form' or the 'input' tags or 'submit' button, which are rendered using django forms, cannot be modified using CSS in this way. Is there any other way to fix it?

On Wednesday, 13 May 2020 18:58:08 UTC+5:30, Clive Bruton wrote:

On 12 May 2020, at 22:41, Anubhav Madhav wrote:

> Is there any way to display the forms with my HTML CSS files.

Use {% include %} (https://docs.djangoproject.com/en/3.0/ref/
templates/builtins/#include) in your HTML template files for an  
embedded style sheet, or just use a link in the head of your template  
to serve the .css from the "static" folder (or other remote server  
location).


-- Clive

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9650e11-31a1-44ff-a4c4-2a59e7ac27cf%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/af4359f1-f111-438a-b025-247bf36e123c%40googlegroups.com.

No comments:

Post a Comment