Hi
I have made form for signup using Django 2.0 as below
<form action="" method="POST"> {% csrf_token %}
{% for non_field_error in form.non_field.errors %}
<p> {{ non_field_error }} </p>
{% endfor %}
{% for field in form %}
{{ field }}
{% if field.help_text %}
{% autoescape off %}
<p> {{ field.help_text }} </p>
{% endautoescape %}
{% endif %}
{% for error in field.errors %}
{% autoescape off %}
<p> {{ error }} </p>
{% endautoescape %}
{% endfor %}
{% endfor %}
<input type="submit" id="submitBtn" value="SIGN UP"/>
Now i want to know how can i style error list and help text using css (which can work in all device) ?
And is it good practice to render each and every input field, errors & help separately (one by one using for loop) ?