Title: Thumbnail Styling
Last modified: August 15, 2017

---

# Thumbnail Styling

 *  Resolved [jacobwhitney](https://wordpress.org/support/users/jacobwhitney/)
 * (@jacobwhitney)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/thumbnail-styling/)
 * Hello there,
 * I am having an issue with styling multiple galleries on a single WordPress page.
   I changed the margins and border-radius using the following CSS:
 *     ```
       #bwg_container1_0 #bwg_container2_0 .bwg_standart_thumb_spun1_0 {
           margin: 10px 15px !important;
       }
       #bwg_container1_0 #bwg_container2_0 .bwg_standart_thumb_spun1_0 img {
           border-radius:3px !important;
       }
       ```
   
 * This worked for the first gallery. However, when I added a second shortcode on
   the same page, the following gallery doesn’t use the CSS. The site is not yet
   public, so I don’t have a url to share with you. However, below are screenshots
   of the galleries on the page, as well as the shortcodes used when editing the
   page. Please advise what CSS I should use to apply styles to all galleries.
 * [Screenshot Folder](https://www.dropbox.com/sh/0mw4y399k4vy560/AAAIfznoEj8d7StH-VH81cdha?dl=0)

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

 *  Plugin Contributor [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * (@photogallerysupport)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/thumbnail-styling/#post-9414697)
 * Hello, [@jacobwhitney](https://wordpress.org/support/users/jacobwhitney/)!
 * Thank you for posting your request!
 * Please note, that these IDs are unique for each gallery. For example, for your
   second gallery, you will need the following CSS code:
 *     ```
       #bwg_container1_1 #bwg_container2_1 .bwg_standart_thumb_spun1_1 {
           margin: 10px 15px !important;
       }
       #bwg_container1_1 #bwg_container2_1 .bwg_standart_thumb_spun1_1 img {
           border-radius:3px !important;
       }
       ```
   
 * The last number of each ID on different shortcodes on the same page is dynamic.
   So you will need to add the CSS for each of them.
 * Let me know in case you have questions.
    Cheers!
 *  Thread Starter [jacobwhitney](https://wordpress.org/support/users/jacobwhitney/)
 * (@jacobwhitney)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/thumbnail-styling/#post-9416439)
 * Tried adding new code with the last numbers changed, but it didn’t work.
 * Here’s the screenshot of the CSS and webpage: [New Screenshot](https://www.dropbox.com/sh/0mw4y399k4vy560/AAAIfznoEj8d7StH-VH81cdha?dl=0)
    -  This reply was modified 8 years, 10 months ago by [jacobwhitney](https://wordpress.org/support/users/jacobwhitney/).
 *  Plugin Contributor [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * (@photogallerysupport)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/thumbnail-styling/#post-9417957)
 * Hello, [@jacobwhitney](https://wordpress.org/support/users/jacobwhitney/)!
 * Please note, that only changing the last number of the IDs will not work. You
   will need to check the IDs of the parents as it looks in the code I provided.
 * If you’re having trouble, please publish 2-3 galleries on a live page and post
   the link here. We will provide you the CSS code and show an example.
 * Thanks! Have a wonderful day!

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

The topic ‘Thumbnail Styling’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 3 replies
 * 2 participants
 * Last reply from: [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/thumbnail-styling/#post-9417957)
 * Status: resolved