• Hello!

    I have set the caption on the main image to be centre aligned, it even says it’s center aligned in the html, but it’s displaying aligned to the left in the site. Can anyone help with this bug?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    The image seems to be centre aligned, not with an alignment CSS property but by making it a block element with margin left and right set to ‘auto’. So there’s no alignment set on the text, allowing it to default to the left.

    Q: Is it possible to select only the caption text and align it ‘center’?

    Q: If not, how comfortable are you with editing CSS?

    John

    • This reply was modified 8 years, 2 months ago by johnnyivan.
    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi , add this to Additional CSS to center align all captions.

    .wp-caption-text {
      text-align: center;
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Caption alignment not working’ is closed to new replies.