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

Viewing 2 reply threads
  • Author
    Posts
    • #1144 Reply
      Artem
      Guest

      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
      Guest

      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
        Guest

        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
      Guest

      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
        Guest

        It works now. Thank you so much!

Viewing 2 reply threads
Reply To: Images in the post are not centred
Your information: