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

Home Forums CSS Center Captions Over Gallery Images Reply To: Center Captions Over Gallery Images


The background-position property relates to images/gradients so will not centre text.

The most obvious way to centre text is to use the text-align property (with ‘center’ value), although it’s success depends on markup, and other stuff going on in the CSS.

To offer specific help, we would need a reduced demo in something like CodePen. Or you can try further techniques from this article