Skip to content Skip to sidebar Skip to footer

Putting Submit Button At The Bottom Of The Form

I want the submit button to be at the bottom of the form. I have tried using
,
,
,
and . So far

Solution 1:

I think you need to remove the float and change br into div

<form method="post" action="">
  {% csrf_token %}

  {% for hidden in form.hidden_fields %}
  {{ hidden }}
  {% endfor %}

  <div>
    {# Include the visible fields #}
    {% for field in form.visible_fields %}

    <div className="fieldWrapper">
      {{ field.errors }}
      {{ field.label_tag }}
    </div>

    {{ field }}

    {% endfor %}

  </div>
  <div><input type="submit" value="Submit"></div>
</form>

Solution 2:


Post a Comment for "Putting Submit Button At The Bottom Of The Form"