Community Forums › Forums › Archived Forums › General Discussion › Pic Won't Center Align!
- This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by jbergen.
-
AuthorPosts
-
September 30, 2014 at 4:05 pm #126358Anthony GalliMember
For some reason the picture won't center align when I click align. In the example below I had to use the spacebar. Not classy. The space difference unfortunately shows on your phone.
Will you help me?
This is your destiny!
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
October 1, 2014 at 12:33 pm #126453jbergenMemberHi!
The problem is related to a couple of unnecessary inline style rules in your img tag. First, remove
style="display: inline;"
and removelazy
afterclass="...
from the HTML used to display the blog post image (see below):Before the change:
<img scale="0" src-orig="http://i1.wp.com/www.anthonygalli.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif?resize=300%2C215" style="display: inline;" class="lazy wp-image-1784 size-medium aligncenter" src="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" data-original="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" alt="rules-2" height="215" width="300">
After the change:
<img scale="0" src-orig="http://i1.wp.com/www.anthonygalli.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif?resize=300%2C215" class="wp-image-1784 size-medium aligncenter" src="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" data-original="http://www.anthonygalli.com/wp-content/uploads/2014/09/rules-2-300x215.jpg" alt="rules-2" height="215" width="300">
Then remove the spaces you had to add before the image, and the .aligncenter class given to the image when you click "align: center" should work.
Jamie
Jamie @ Ladebug Studios
October 1, 2014 at 4:27 pm #126473Anthony GalliMemberSorry!
I can't find where to do the changes. Is that in the CSS somewhere? This doesn't just happen with this one blog post's pic, it happens to all of them when I try and center 🙁
Thanks again for reaching out to me and trying to help!
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
October 1, 2014 at 4:33 pm #126474jbergenMemberI don't think it's in a CSS file. It appears to be inline in your HTML. When you write blog posts, which tab in the editor are you using? Visual or Text? Assuming you're using the Visual tab, try switching to Text to see that HTML tag that I pasted into my last reply. If you find it, you can make the changes I mentioned.
The question of why it's happening to all of your blog post your images is a slightly larger issue. Assuming you're not manually inserting all of that inline style stuff, can you think of a plugin you're using that might be doing it?
Jamie
Jamie @ Ladebug Studios
October 1, 2014 at 5:36 pm #126476Anthony GalliMemberThank you so much you helped me solve the issue!
I was using a plugin to slow down image loading in the name of speeding up the website. Didn't do well in either regard so I deleted it, therefore solving this issue too!
Thanks Jamie! Good luck with ladebug!
I blog about great adventures, good habits, and quantified success! Join me on the open road @ http://www.AnthonyGalli.com
October 1, 2014 at 6:07 pm #126481jbergenMember -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.