The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › centering image in tag › Re: centering image in tag
img { margin:0 auto } should work just fine. Of course you need to make img a block element with img { display:block } otherwise it won’t work.