• 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:
    https://www.oliverpohlmann.com/archives/666/img_0642

    Many thanks

    Oliver

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter mubble

    (@mubble)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need your expertise to center images’ is closed to new replies.