Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how do i use the auto selector to place an image tag in the middle of a DIV tag Re: how do i use the auto selector to place an image tag in the middle of a DIV tag

#110737
Kitty Giraudel
Participant

Images are inline elements by default. Set display block then margin: 0 auto to center it.