How WordPress Actually Works Behind the Scenes (Infographic)

This terrific infographic is courtesy of wpbeginner.com. Im taking the liberty of storing a copy here just in case something happens to the original. View the whole post which comes with a complete text/html version of the info graphic also.

Without further ado… Continue reading “How WordPress Actually Works Behind the Scenes (Infographic)”

Centering Images with CSS

img {
text-align: center;
}
That will not work as the text-align property applies to block containers, not inline elements, and img is an inline element.

Put text-align: center on a containing block and as long as the image is still inline, it will be centered.

If the image itself is set to block then it must have left and right margins set to auto.