Introduction

Images not aligning properly in WordPress can make your content look messy and unprofessional. Most wordpress alignment issues come down to CSS, not the editor itself.

Sometimes images stick to one side, overlap text, or just refuse to center properly—even when everything looks fine in the editor.

The good news? This is usually a simple fix once you know what’s causing it. If you are running WordPress 7.0.2 and your images still misbehave, the steps below will help you track down the cause.

Let’s go step by step.


What Image Alignment Issues Look Like

Before fixing, check if you’re facing one of these wordpress alignment issues:

  • Image won’t center even after selecting “Center”
  • Text overlapping the image
  • Image stuck to left or right
  • Spacing between image and text looks broken
  • Different alignment on mobile vs desktop

Why Image Alignment Breaks in WordPress

Theme CSS Overrides

Your theme might be overriding default alignment styles.

Block Editor vs Classic Editor Differences

Alignment works differently depending on the editor you’re using.

Missing or Broken CSS Classes

WordPress uses classes like alignleft, aligncenter, alignright.

If these aren’t styled correctly, alignment breaks.

If you inspect your image and see img class="alignnone", that means no alignment class is applied. An img class alignnone setting is normal, but it can leave the image without any spacing or centering rules, so it may look stuck to the content around it.

Plugin Conflicts

Page builders or styling plugins can interfere with layout.


How to Fix WordPress Image Alignment Issues

Start with the simple fixes first.


Fix #1: Use Built-in Alignment Options Properly

In the block editor:

  • Click on the image
  • Use alignment options (Left, Center, Right)
  • Update the post

Sometimes reselecting alignment fixes glitches.


Fix #2: Check Image Block Settings

In the right sidebar:

  • Check width settings
  • Ensure it’s not set to full-width unintentionally
  • Adjust layout options

Fix #3: Add Proper CSS for Alignment (Important)

If your theme is missing alignment styles, add this:

.alignleft {
float: left;
margin-right: 15px;
}

.alignright {
float: right;
margin-left: 15px;
}

.aligncenter {
display: block;
margin: 0 auto;
}

This restores basic alignment behavior.


Fix #4: Clear Floating Issues

If text overlaps images, add:

.clearfix::after {
content: “”;
display: block;
clear: both;
}

Or apply clear: both; where needed.


Fix #5: Check for Theme CSS Conflicts

Inspect the image:

  • Right-click → Inspect
  • Check if CSS is overriding alignment

Look for properties like:

  • float: none;
  • display: inline;

Fix or override them.


Fix #6: Test With Default Theme

To confirm if your theme is the issue:

  • Switch to a default theme (like Twenty Twenty-Four)
  • Check alignment

If it works, your theme CSS needs fixing.


Fix #7: Disable Page Builder or Plugins

Builders like Elementor or others may override alignment.

  • Disable plugins temporarily
  • Test alignment again

Fix #8: Fix Mobile Alignment Issues

Sometimes alignment breaks only on mobile.

Add responsive CSS:

@media (max-width: 768px) {
.alignleft,
.alignright {
float: none;
display: block;
margin: 0 auto;
}
}

Fix #9: Handle the alignnone Class

When an image is set to no alignment, WordPress adds the alignnone class. If your images look cramped or stuck to surrounding text in that state, add this spacing rule:

.alignnone {
    display: block;
    margin: 15px 0;
}

This gives img class alignnone images breathing room without changing their position. Use margin: 15px auto; instead if you want them centered.


If Your Fix Doesn’t Work

If the image still won’t move after trying every step, that usually means something is overriding your CSS. Check that your custom CSS is saved in the correct place, confirm you are editing the active theme, and make sure a caching plugin isn’t serving an old stylesheet. On WordPress 7.0.2, also confirm that your theme and editor plugins are up to date, since outdated versions are a common cause of stubborn alignment problems.

If nothing changes, look at the image in your browser’s inspector and note which rule is applied last. That rule is the one winning, and it tells you exactly what to change.


Small Tip That Makes a Big Difference

After making CSS changes:

  • Clear cache
  • Refresh page
  • Test on mobile + desktop

Otherwise, you might not see the fix immediately.


Final

WordPress image alignment issues are usually caused by theme CSS or layout conflicts—not WordPress itself.

Once you fix the alignment styles or remove conflicts, your images will behave exactly as expected.

 

 

Final Thoughts

If you want a fast, reliable, and easy-to-use contact form plugin, VPSUForm is the clear choice. Build unlimited types of forms – contact, booking, feedback, surveys – with minimal effort.

👉 Download VPSUForm today and get started
👉 Learn more about VPSUForm’s powerful features here