how do i centre the images in my posts ?
basically when i upload the image i click the CENTRE option however when the post goes live on my blog the image to appear to the left.
is there a code i can input somewhere to ensure the image is centred ?
how do i centre the images in my posts ?
basically when i upload the image i click the CENTRE option however when the post goes live on my blog the image to appear to the left.
is there a code i can input somewhere to ensure the image is centred ?
Did you customize the CSS of your theme?
yes in parts but i don't think i touched anything about the image
Then I advise you to add this in your css file:
.entry img {
text-align: center;
}
Don't have to make any other changes anywhere. Please try it and lets see if that helps :)
ok - in which css file though ?
I put it into my stylesheet.css and it didnt work
Try adding:
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
to the bottom of style.css.
yep that worked Esmi !
once again thanxx for your help you star !!
You're welcome.
This topic has been closed to new replies.