Created
February 26, 2016 04:44
-
-
Save catoidrobo/ffb88b275ad0d5feac3f to your computer and use it in GitHub Desktop.
imgを中央揃えにしたいが、divタグでくくれないとき
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imgCeter{ | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
<img src="hoge.jpg" class="imgCeter" /> | |
参考 | |
http://wayohoo.com/programming/css/how-to-center-the-img-tag.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment