2015/03/10
[CSS] How to center images all at once
This is a memorandum.
I wanted to center all the images in the article all at once, so here are some notes on how to do that.
img{ display:block;/*Specified as a block element because it is an inline element*/ margin:0 auto; }
Center alignment is possible by specifying it with a block element and setting the left and right outer margins to auto.
That was a simple note.