• crazedpanda

    (@crazedpanda)


    I was just wondering how to center an image. When I insert an image using the shortcode it automatically sets the float to none. Is there any way to change the image to center it using the shortcode?

Viewing 4 replies - 1 through 4 (of 4 total)
  • DanCoulter

    (@dancoulter)

    If you put float="center" into your shortcode, it will add a CSS of “center” to the image. Some WordPress themes will add a text-align to center the image (the default theme does, for example). If it does not center it for you, you can add this to your theme’s style.css file.

    div.flickr-gallery.image.center { text-align: center }

    I have the same problem and I have not understood which files to modify in order to center the image.
    Sorry for bad english.
    Best regards.

    I’ve had a related problem: I’ve been unable to get the Flickr Gallery (the grid of thumbnails, not just a single photo) to appear centered on the WordPress Page where I’ve installed it.

    Putting “float=”center” doesn’t seem to have any effect. I’ve also tried inserting “div.flickr-gallery.image.center { text-align: center }” as suggested above at several points in my blog’s .css file, to no avail.

    I’ve experimented with several sorts of float and text=center instructions, but not of these seem to move the Flickr Gallery to the middle of the column.

    Does anyone have any ideas (or perhaps just a more detailed explanation of the idea that Dan suggested above) about an effective method of getting the Flickr Gallery centered? Would appreciate any suggestions.

    What short code are you using to call the gallery?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Flickr Gallery] Centering Image’ is closed to new replies.