The OSP

Your Online Success Partner

  • Home
  • About
  • Services
    • Web Design
    • Social Media
    • Email Marketing
    • E-Commerce
    • Other Services
    • We ♥ Our Affiliates (Sign up/ Log in)
  • Portfolio
    • Websites
    • Squeeze and Sales Pages
    • Custom Facebook Fan Pages
    • Custom Twitter Pages
    • Newsletters
  • Blog
  • Resources
    • OSP Recommends
    • What if your site was hacked?
    • Evaluate Your Site
    • Make Your Facebook Business Page a Success
    • Things To Consider When Choosing A Domain
  • Contact

Fix Image Alignment Problems In WordPress

February 5, 2011 By Jodie Burdette Leave a Comment

Welcome! Take a second and subscribe to our RSS feed. While you are at it grab some free social media marketing tips. Thanks for visiting!


wp wrench1 Fix Image Alignment Problems In WordpressLately I have run into the same issue on several sites.  I uploaded a new theme (in these cases client provided) and all my images were left aligned.  No matter what I did I could not get the to center or right align.  A quick Google search later I had the reason and a simple solution.

Starting with WordPress 2.6, due to coding changes, all themes need special coding to handle image alignment.  Simply log into  your WP Dashboard and under Appearance click Editor.  From the column to the left select your themes style sheet (probably style.css) and add the following code preferably at the end of the file and click the Update File button.

No update file button?  Then you don’t have permission on your server to make changes to this file.  Drop me an email and I can take care of this for you.

.aligncenter, div.aligncenter
{ display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft
{ float: left;
}
.alignright
{ float: right;
}
.wp-caption
{ border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
/* optional rounded corners for browsers that support it */
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img
{ margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text
{ font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}

pixel Fix Image Alignment Problems In Wordpress
Filed Under: Blog or Website Tips Tagged With: image alignment, images not aligning, images not lining up, images won't center, Wordpress Sites

Speak Your Mind Cancel reply

*

*

CommentLuv badgeShow more posts

Tips For Successful Are you really
My First name is and
my email is

Your information will never be shared or sold.

From Our Blog

  • Is your website hurting sales? 5 Keys to creating a website that SELLS!
  • Create Headlines that SELL!
  • 5 Quick and Dirty SEO Tricks
  • How to Find Guest Blogging Opportunities
  • 7 Reasons Why You Need To Start Guest Blogging
Hackers don't care how big your site is.  The Worry Free WP Security Package insures that the very foundations of your website are kept up to date and as protected as possible without you having to give it a second thought.  Click Here and give yourself the knowledge that your site is as safe as it gets all the time no matter what.

Connect With OSP

FacebookLinkedInTwitterRSS

Switch to the hosting company that puts your business first
(and save $$$)

Get small town customer support and cutting edge technology for pennies a day, backed by THE largest web server provider in the world!

Everything you need at one low low price. Absolutely NO hidden charges.

2007 Add new tag alternative any graphic automatically Blog buzz carbonite comments custom custom watermark events facebook facebook fan page fan page folder format free Google go viral guest blog guest blogging increase internet keyboard marketing Microsoft Office microsoft word more comment ms word msword open organize participation Photoshop photoshop alternative plugin PowerGramo publicity record. skype review shortcuts twitter word Wordpress Sites

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Return to top of page

Copyright© 2007 - 2011 · All Rights Reserved The OSP · Project Management Login