Home › Forums › CSS › Center Captions Over Gallery Images › Reply To: Center Captions Over Gallery Images
November 8, 2016 at 11:25 pm
#247657
Participant
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 https://css-tricks.com/centering-css-complete-guide/