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

Float left in .button #1

Open
caroso1222 opened this issue Dec 31, 2015 · 0 comments
Open

Float left in .button #1

caroso1222 opened this issue Dec 31, 2015 · 0 comments

Comments

@caroso1222
Copy link

Hi.

I'm having a hard time trying to center a button inside a bootstrap column. I have something like:

<div class ="col-sm-3">
   <button class = "button button--aylen">My text </button>
</div>

I found in the file button.css that the button is floated to the left. Why is this necessary? I removed it and now I can place the button wherever I want using its margin (e.g. margin:auto; to center on parent).

Should I send a PR editing the float property?

.button{
    float:none; /* CHANGED FROM LEFT TO NONE*/
    min-width: 150px;
    max-width: 250px;
    display: block;
    margin: 1em;
    padding: 1em 2em;
    border: none;
    background: none;
    color: inherit;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
}
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

1 participant