Because by default it has display: inline , and it is necessary either to affix display: block , or center it by text-align: center .PS Is it convenient for you to work with such formatting? - etki
text-align: center;does not work ... but display - yes. Thank you! I do not know what is there about formatting) I'm just learning - mi4i
|
1 answer 1
Because there is no reason for her to level off. Margin margin: auto as for block elements, but img string.
You either give a display: block picture, or a text-align: center container.
display: inline, and it is necessary either to affixdisplay: block, or center it bytext-align: center. PS Is it convenient for you to work with such formatting? - etki