mubble
Member
Posted 9 months ago #
Hi guys,
I'm using a theme called Fullscreen.
When I view images in a gallery on my site, the images stay aligned to the left. As a coding noob, could someone direct me on how to center the images.
When I add images to the gallery via the wordpress dashboard, no matter what alignment option I choose for the image, they still align on the left.
Here's an example:
http://www.oliverpohlmann.com/archives/666/img_0642
Many thanks
Oliver
Try adding this to the end of style.css:
p.attachment a img.attachment-large {
display: block;
margin: 0 auto;
}
Because this image does not have a unique class, this may affect other items in you site, so check carefully.
mubble
Member
Posted 9 months ago #
You my friend are simply god-like!
Not to self - in future, just ask the experts. It saves a lot of time.
I'll double check it hasn't affected anything else on the site, but otherwise, a massive thank you.