How to add space after label in ModelForms of django
<p>I want to add space after "Mobile No: ",meaning in between label and text area. But by using django ModelForms I am not able to do that, it shows "Mobile No:" without any space between label and textarea.</p>

<p>This is how I have described it in models.py file.</p>

<pre><code>phone = models.CharField(max_length=10, verbose_name="Mobile No", validators=[mobileno])
</code></pre>

<p>forms.py file</p>

<pre><code>class UserInfoForm(forms.ModelForm):
    class Meta:
        model = UserInfo
        fields = ('phone',)
</code></pre>

<p>This is the content of my html file.</p>

<pre><code>&lt;form method="post"&gt;    
    {% csrf_token %}
    {{ form }}
       &lt;/form&gt;
</code></pre>

<p>This is how it is showing by default.</p>

<p><a href="https://i.stack.imgur.com/mUhhS.png" rel="nofollow"><img src="https://i.stack.imgur.com/mUhhS.png" alt="enter image description here"></a></p>

<p>How can I add space between label and textarea. Thanks for you help.</p>

<p>You should iterate through your form fields.</p>

<p>Like this:</p>

<pre><code>&lt;form method="post" &gt; {% csrf_token %}

        {% for field in form %}

        &lt;div class="form-group"&gt;
            &lt;label class="col-sm-4 control-label" for="{{ field.name }}"&gt;{{ field.label }} : &lt;/label&gt;

            &lt;div class="col-sm-8"&gt;
                {{ field }}
            &lt;/div&gt;
        &lt;/div&gt;

        {% endfor %}
    &lt;/div&gt;
</code></pre>

python django django-models django-forms