• Resolved windman

    (@windman)


    I have two images, both aligned center, on the home page. I am pretty sure the alignment worked well on WP vers. 4.9.11 until I upgraded to WP versions before 5.3 and then till 5.3. When I made the upgrade to the version before 5.3 I had the homepage open in WP and I saw the images literally (I hate to use that word but here it is accurate) slide from center to the left.

    I have reloaded the pictures from the image library to no avail.

    I have inserted the code (as recommended in another thread)

    .aligncenter {
    margin: 0 auto;

    in Customize/Additional CSS to no avail.

    I use Theme Flexia.

    It looks OK in the editor but I need it to look good on the actual page. What can I do?

    /Windman

    • This topic was modified 5 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Requests and Feedback topic

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter windman

    (@windman)

    Clarification: The closing bracket was missed at copy and paste; should be

    .aligncenter {
    margin: 0 auto;
    }

    /Windman

    baranwal

    (@baranwal)

    Just change your aligncenter class CSS to the below code. It works on your page.

    .aligncenter{
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    Thread Starter windman

    (@windman)

    Thank you baranwal!

    Works fine. Impressive with solving reply within one hour! Again, thanks!

    /Windman

    My Pleasure ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Align Center” doesn’t work after upgrade’ is closed to new replies.