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

Issue with displaying checkbox in Bootstrap 3 #71

Open
dugajean opened this issue May 18, 2019 · 4 comments
Open

Issue with displaying checkbox in Bootstrap 3 #71

dugajean opened this issue May 18, 2019 · 4 comments

Comments

@dugajean
Copy link

I'm using this checkbox library and it looks proper in some places, and in some others it looks unaligned for some reason which I can't figure out. I'm using Bootstrap 3 in my project and whenever I use a checkbox in a .row/col-* I get issues.

This is how it looks like:

Checkbox1

Checkbox2

As you can see, they shift upwards somehow. I tried debugging the CSS, but I can't figure it out.

@lokesh-coder
Copy link
Owner

Hi @dugajean, can you provide some sample code. It would be helpful for me to understand the issue

@dugajean
Copy link
Author

dugajean commented May 18, 2019

I'm not sure what to provide exactly, so here's the HTML for the first image above:

<div id="app" class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="header">
                        <h4 class="title">Details</h4>
                    </div>
                    <div class="content">
                        <form method="POST" action="http://localhost/payments" accept-charset="UTF-8">
                            <div class="pretty p-icon p-curve">
                                <input name="paid" type="checkbox" value="1">
                                <div class="state"><i class="icon fa fa-times"></i>
                                    <label>Has the patient paid?</label>
                                </div>
                            </div>
                            <input type="submit" value="Save Changes" class="btn btn-primary btn-fill pull-right">
                            <div class="clearfix"></div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@lokesh-coder
Copy link
Owner

I couldn't reproduce the issue. I tried in codesandbox, seems working fine.

https://myciz.codesandbox.io/

@dugajean
Copy link
Author

I'll provide some more appropriate code shortly.

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