🐣 [HTML&CSS] img を中央に配置する
作成日: 2021/07/29
0

when img moved into center,
set left and right margin to auto and make it into a block element:

img{
display: block;
margin-left: auto;
margin-right: auto;
}