Title: Gallery Column Width
Last modified: August 20, 2016

---

# Gallery Column Width

 *  Resolved [dmaqg](https://wordpress.org/support/users/dmaqg/)
 * (@dmaqg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/)
 * Using the built-in gallery, is there a way to style the column width?
 * I would like to add some padding between images, but can’t seem to figure out
   where to do that.
 * [http://www.richmondranch.net/gallery](http://www.richmondranch.net/gallery)
 * I have exactly what I want on my test server, but it changed when I moved it 
   live. [http://www.etmcreative.com/C2/gallery](http://www.etmcreative.com/C2/gallery)
 * I’m using a funky theme that sort of hides the normal css, so I’d like to add
   an inline style to that shortcode if it’s possible.
    Thanks for any help!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785260)
 * you can ‘move’ the gallery shortcode to functions.php of your theme and add your
   inline styles there;
 * see: [http://wordpress.org/support/topic/edit-gallery-shortcode?replies=9](http://wordpress.org/support/topic/edit-gallery-shortcode?replies=9)
 * if you think your problem is theme related, please contact the sellers of your
   theme for support.
 *  Thread Starter [dmaqg](https://wordpress.org/support/users/dmaqg/)
 * (@dmaqg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785270)
 * Thanks for your reply. I don’t really understand that, so I will probably leave
   it. Isn’t there a way to style it in the page editing screen?
 * I’m not sure how it could be theme related because I am running the same theme
   on both sites…
 *  [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785283)
 * Add to your css:
 *     ```
       .post-inner-single, .post-inner {
           float: left;
           margin-bottom: 20px;
           width: 940px; /* change is here, was 100% */
       }
       ```
   
 * Suggest, for my personal taste, you add to your css:
 *     ```
       .gallery .gallery-row {
           clear: both;
           display: block;
           margin: 0;
           overflow: hidden;
           padding-bottom: 30px; /* added padding */
       }
       ```
   
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785284)
 * this embedded style in the ‘ranch’ site is making the difference:
 *     ```
       <style type="text/css">
       	        			.ultimatepost{
       	        			float:left;
   
       	        			}
       	        			.ultimatepost .aligner{
   
       	        			}
       	        			</style>
       ```
   
 * try to find out where it is coming from, why it is there, and remove it.
 *  Thread Starter [dmaqg](https://wordpress.org/support/users/dmaqg/)
 * (@dmaqg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785293)
 * Ok, thanks I can work with those two comments.
 *  Thread Starter [dmaqg](https://wordpress.org/support/users/dmaqg/)
 * (@dmaqg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785313)
 * Yeah! I have it fixed. I added your css, Flashbuddy, thank you! It actually looks
   even better than before with the padding between rows. 🙂

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

The topic ‘Gallery Column Width’ is closed to new replies.

## Tags

 * [column width](https://wordpress.org/support/topic-tag/column-width/)
 * [gallery shortcode](https://wordpress.org/support/topic-tag/gallery-shortcode/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 6 replies
 * 3 participants
 * Last reply from: [dmaqg](https://wordpress.org/support/users/dmaqg/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/gallery-column-width/#post-2785313)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
