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
Centering content blocks with buttons #22732
Comments
do you have a reduced test case example? (also, |
This is in version 3. |
Bootstrap 3 is essentially in maintenance mode as we focus on working towards a stable v4. As such, we're only accepting changes to v3's code on a case-by-case basis, usually only for critical bug fixes or docs improvements. |
Here is a solution. A CSS declaration like |
Buttons are inline-block, use |
Using |
The
center-block
class is fine to achieve a centered button only if it is really a button element. Applying to a link button does not work.Examples (both cases):
<button type="button" class="btn btn-default center-block">Pure button</button>
.<a href="#" class="btn btn-default center-block">Link button</a>
.The text was updated successfully, but these errors were encountered: