]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Add a warning in images.html about text-align 15648/head
authorNikita Rushmanov <Nikita240@users.noreply.github.com>
Fri, 23 Jan 2015 11:16:07 +0000 (03:16 -0800)
committerNikita Rushmanov <Nikita240@users.noreply.github.com>
Fri, 23 Jan 2015 11:16:07 +0000 (03:16 -0800)
commit6e782ed42d90a54e8d548cee66be3627b0a1d077
treefc7fca3496868113153b0cfdf601dffcdfc61316
parentd41f114e9b11eddd3c947755801a35c0687c40e1
Add a warning in images.html about text-align

People normally center images using text-align. However, the `.img-responsive`
class changes the display type to block. As a result you can no longer align the
image with text-align. You must instead do it with margin: auto. There was no
note about this on the web page, and no mention about setting the display to
block. Users were left on a frustrating journey to figure out why they can't center
images anymore!
docs/_includes/css/images.html