• Resolved vonblitz

    (@vonblitz)


    I spent ages trying to centre a Twenty20 image. Finally I figured out I could add a div right into the page editor. You’ll need to be in classic editor in the text section.

    <div style=”width: 395px; margin: auto; text-align: center;”>[twenty20 shortcode here]</div>

    Make sure your width px is the same as the one in your shortcode.

    If you set both to 100% it will work with responsive templates.

    This worked for me. Hope it works for others.

    • This topic was modified 4 years, 9 months ago by vonblitz.
    • This topic was modified 4 years, 9 months ago by vonblitz.
    • This topic was modified 4 years, 9 months ago by vonblitz.
    • This topic was modified 4 years, 9 months ago by vonblitz.
    • This topic was modified 4 years, 9 months ago by vonblitz.
  • The topic ‘How to Centre an image – Solved!’ is closed to new replies.