• Start Here
  • Blog
    • Blogging
    • SEO
    • Themes
    • Plugins
    • Hosting
  • Tutorials
    • Create A Website
    • Start A Blog
    • WordPress SEO
    • Speed Up WordPress
    • WordPress Security
  • Tools
    • WordPress Hosting
    • Caching Plugins
    • Security Plugins
    • Comment Plugins
No Results
View All Results
GigaPress
  • Start Here
  • Blog
    • Blogging
    • SEO
    • Themes
    • Plugins
    • Hosting
  • Tutorials
    • Create A Website
    • Start A Blog
    • WordPress SEO
    • Speed Up WordPress
    • WordPress Security
  • Tools
    • WordPress Hosting
    • Caching Plugins
    • Security Plugins
    • Comment Plugins
No Results
View All Results
GigaPress

How To Fix WordPress Images That Won’t Align Properly

Brad Merrill by Brad Merrill
0
How To Fix WordPress Images That Won’t Align Properly
Share on FacebookShare on Twitter

WordPress provides built-in functionality to align images left, right, and center, but it relies on your theme to render those images properly.

If you find that your images are not aligning correctly in your theme, you can solve this by adding a few lines of CSS to your theme’s stylesheet (preferably using a child theme), or to the Additional CSS section of the Customizer:

.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}

Once you’ve added this, you should find that your images begin aligning as intended.

If you have any questions, feel free to leave them in the comments below!

Previous Post

How To Set Up Cloudflare Flexible SSL With WordPress

Next Post

How To Fix WordPress Mobile Image Alignment & Text Wrap Problems

Next Post
How To Fix WordPress Mobile Image Alignment & Text Wrap Problems

How To Fix WordPress Mobile Image Alignment & Text Wrap Problems

No Results
View All Results

Join The Community

Be the first to see the latest WordPress tips, tricks, tutorials, and reviews from GigaPress.

GigaPress is free and reader-supported. When you make a purchase through one of our links, we may receive a commission at no additional cost to you.

Essential Resources

How To Create A Website: Step-By-Step Beginner’s Guide
Tutorials

How To Create A Website: Step-By-Step Beginner’s Guide

December 9, 2020
How To Start A Successful Blog In 2021: The Definitive Guide
Blogging

How To Start A Successful Blog In 2021: The Definitive Guide

December 13, 2020
How To Speed Up Your WordPress Site: The Only Guide You Need
Tutorials

How To Speed Up Your WordPress Site: The Only Guide You Need

February 28, 2021
WordPress Security: The Complete Step-By-Step Guide
Security

WordPress Security: The Complete Step-By-Step Guide

August 13, 2019
WordPress SEO Tutorial: The Complete Guide To Higher Rankings
SEO

WordPress SEO Tutorial: The Complete Guide To Higher Rankings

February 24, 2021

Get The Newsletter

Join our newsletter to get the best WordPress tips and tutorials every week.
    GigaPress

    © 2021 GigaPress
    A Merrill Media Publication

    Site Links

    • Start Here
    • Tools
    • About
    • Contact
    • Privacy

    Follow Us

    No Results
    View All Results
    • Start Here
    • Blog
      • Blogging
      • SEO
      • Themes
      • Plugins
      • Hosting
    • Tutorials
      • Create A Website
      • Start A Blog
      • WordPress SEO
      • Speed Up WordPress
      • WordPress Security
    • Tools
      • WordPress Hosting
      • Caching Plugins
      • Security Plugins
      • Comment Plugins

    © 2021 GigaPress
    A Merrill Media Publication

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Create New Account!

    Fill the forms bellow to register

    All fields are required. Log In

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In

    Session expired

    Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.

    >