How to Center Images

Information on using FootballBlog.co.uk and writing about football, including how to write for a specific team

How to Center Images

Postby admin on Sat Jul 25, 2009 6:25 am

It is something that has been driving a few writers crazy recently, so here is how to make sure your images stay central in your articles if you wish.

Sometimes they go there and stay as you want, but if once you have published they don't behave, head back and edit the article.

In the blogsFC editor, switch from Visual to HTML mode, then find the image and put the following around the code for it:

Code: Select all
<div style="text-align: center"><img src="http://website.com/image.jpg" alt="" />
Basic Caption text</div>

for those using more advanced captions you should still be able to put the div tags around whatever you are using and it should work.

Any questions or problems implementing it, let me know
User avatar
admin
Site Admin
 
Posts: 1773
Joined: Tue Jul 01, 2008 9:45 am

Re: How to Center Images

Postby alimcl24 on Tue Mar 16, 2010 6:23 pm

tried this 20 times for my blogs but the images always come out to the left.

Its a pity.

On the edit post page everything looks as I want it to be but as soon as I hit update it resorts to type

I may be making some basic mistake,its very frustrating.

helllp
alimcl24
 
Posts: 55
Joined: Wed Dec 09, 2009 1:25 am

Re: How to Center Images

Postby admin on Tue Mar 16, 2010 7:41 pm

You will have to take off the captions you have been adding to the image, that doesn't help when centering, then just write what you want to go under, under it.

Then in visual mode, find the image, then click the center button in the console, or use Alt+Shift+C

Immediately click update, return to your post to check it worked and at the same time close the editor.

If you go back to the editor again, it trys to be clever and format the picture alignment again, this is where it goes wrong and you would have to go in to html mode, manually remove the extra formatting and then repeat as above.

I changed your latest Mexico blog post and the above worked, so hopefully it will for you next time.

The trick is to tell the image to be centered as the last thing you do.
User avatar
admin
Site Admin
 
Posts: 1773
Joined: Tue Jul 01, 2008 9:45 am

Re: How to Center Images

Postby oliversam1234 on Thu Jul 15, 2010 8:32 pm

ian i was wondering whether you could tell me how to get my text next to my image on my celtic preview at the top
oliversam1234
 
Posts: 73
Joined: Sun Oct 25, 2009 11:06 pm


Return to Using FootballBlog.co.uk

Who is online

Users browsing this forum: No registered users and 1 guest

cron