We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The css of the following html needs to be fixed as shown below: HTML:
<div class="center-block"> <img src="img/file.png" class="img-responsive" alt="Responsive Image"> </div>
CSS-FIX:
.center-block .img-responsive {margin: 0 auto;}
The text was updated successfully, but these errors were encountered:
I believe you're supposed to put that on the image
<img src="img/file.png" class="img-responsive center-block" alt="Responsive Image">
http://bootply.com/94007
.center-block { display: block; margin-left: auto; margin-right: auto; }
If .center-block was supposed to be a wrapper, it would have a text-align:center inside it, I would think.
Sorry, something went wrong.
Yup, use it on the element that is meant to be centered.
No branches or pull requests
The css of the following html needs to be fixed as shown below:
HTML:
CSS-FIX:
The text was updated successfully, but these errors were encountered: