Title: Centering galleries in posts?
Last modified: August 30, 2016

---

# Centering galleries in posts?

 *  [jasonleehines](https://wordpress.org/support/users/jasonleehines/)
 * (@jasonleehines)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/)
 * I am just using the basic gallery function. It stays aligned to the left no matter
   what I try within the settings. Will I need to use code to achieve this?
 * Can anybody help with this?
 * I’m also open to using a different gallery plug in if thats easier. Cheers!

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

 *  Thread Starter [jasonleehines](https://wordpress.org/support/users/jasonleehines/)
 * (@jasonleehines)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/#post-6184052)
 * Forgot to link my page so you can see what I’m talking about.
 * [http://www.backpackingcinephile.com/kohutapu-lodge-part-i/](http://www.backpackingcinephile.com/kohutapu-lodge-part-i/)
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/#post-6184128)
 * Hi jasonleehines. You should be able to find something in [this article](http://designshack.net/articles/css/how-to-center-anything-with-css/)
   to help.
 *  Thread Starter [jasonleehines](https://wordpress.org/support/users/jasonleehines/)
 * (@jasonleehines)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/#post-6184405)
 * Hi bdbrown. I tried most of the things in that article but I still couldn’t get
   the bloody thing to center.
 * The HTML for the gallery is:
 * [gallery type="rectangular" size="large" captions="hide" columns="4" ids="735,736,740,739,737,743,742,741"]
 * What should I add to this to center it successfully? Or maybe there is some other
   plug in causing the problem?
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/#post-6184410)
 * Not sure what you’re using to generate the gallery but all the elements used 
   for the gallery have inline styles. To override those you might try adding this
   to your custom css:
 *     ```
       .tiled-gallery .gallery-row {
         margin: 0 auto;
       }
       ```
   

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

The topic ‘Centering galleries in posts?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/centering-galleries-in-posts/#post-6184410)
 * Status: not resolved