Skip to content

Commit

Permalink
Fix issue twbs#15653
Browse files Browse the repository at this point in the history
Fix issue twbs#15653 by adding that `.center-block` should be used when centering a responsive image.
  • Loading branch information
kkirsche committed Jan 23, 2015
1 parent 972a361 commit aa982f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_includes/css/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ <h2 id="images-responsive">Responsive images</h2>
<h4>SVG images and IE 8-10</h4>
<p>In Internet Explorer 8-10, SVG images with <code>.img-responsive</code> are disproportionately sized. To fix this, add <code>width: 100% \9;</code> where necessary. Bootstrap doesn't apply this automatically as it causes complications to other image formats.</p>
</div>
<div class="bs-callout bs-callout-info" id="callout-helper-pull-navbar">
<h4>Centering responsive images</h4>
<p>To align components which use the <code>.img-responsive</code> class, use <code>.center-block</code> instead of <code>.text-center</code>. <a href="../css/#helper-classes-center">See the helper classes docs</a> for details.</p>
</div>
{% highlight html %}
<img src="..." class="img-responsive" alt="Responsive image">
{% endhighlight %}
Expand Down

0 comments on commit aa982f3

Please sign in to comment.