Home Forums Free WordPress Themes Help Prasoon Theme Help Images in the post are not centred

This topic contains 4 replies, has 1 voice, and was last updated by  Artem 10 months, 1 week ago.

  • Author
    Posts
  • #1144 Reply

    Artem

    When I insert images in the post and select “align center” they are not centered, instead it seems like they are aligned to the left. Would be great to receive help from you regarding this issue. Thank you.

  • #1148 Reply

    Spiracle Themes

    Hello Artem,

    Use the CSS below

    .center, .aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    }

    Copy and paste this in Appearance -> Customize -> Additional CSS

    Regards

    • #1149 Reply

      Artem

      Thanks for replying. I’ve added the code to Custom css and tried adding it to main-style.css. Unfortunately, nothing`s changed.

  • #1150 Reply

    Spiracle Themes

    Hi Artem,

    Remove the old CSS and try this one

    .center, .aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    }

    Regards

    • #1151 Reply

      Artem

      It works now. Thank you so much!

Reply To: Images in the post are not centred
Your information: