Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button is not vertically aligned when using Bootstrap #37

Closed
nelsonlho opened this issue Jun 5, 2016 · 1 comment
Closed

Button is not vertically aligned when using Bootstrap #37

nelsonlho opened this issue Jun 5, 2016 · 1 comment

Comments

@nelsonlho
Copy link

nelsonlho commented Jun 5, 2016

I am using the following the code to create a form.
Without col-md-6, the button will be aligned on vertically. But with it, the button floats to the right.
Any idea to fix this?

{% load widget_tweaks %}
<form class="form" classaction="" method="post">{% csrf_token %}
        <div class="form-group col-md-6">
            <label for="title">Title</label>
            {%render_field form.title class="form-control" %}
        </div>

      <button type="submit" class="btn btn-success">Save</button>


</form>
@kmike
Copy link
Collaborator

kmike commented Dec 9, 2016

Hey,

This looks like a markup problem, not an issue with django-widget-tweaks Python library.

@kmike kmike closed this as completed Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants