Title: Gallery2/WPG2 Page Width problems
Last modified: August 19, 2016

---

# Gallery2/WPG2 Page Width problems

 *  [Ballyman](https://wordpress.org/support/users/ballyman/)
 * (@ballyman)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/)
 * Hi
 * I am having a few problems with my Gallery2 output which is embedded into my 
   WordPress site using WPG2.
 * I have set up the WPG2 Output as .g2_column {width: 960px;margin: 0px 1px 0px
   12px;} and the initial gallery page seems to be fine although it may be because
   of the amount of text that it actually fits properly.
    You can have a look at
   a page that works fine here – [http://atl-photography.com/wordpress/events/wpg2](http://atl-photography.com/wordpress/events/wpg2)
 * As you can see, the gallery page fits in fairly well across the page. However
   when I go into an album then it depends on the amount of text under each photo
   as to whether the page width is correct or not. You can see two examples below.
 * Correct Layout – [http://atl-photography.com/wordpress/events/wpg2?g2_itemId=11](http://atl-photography.com/wordpress/events/wpg2?g2_itemId=11)
   
   Incorrect Layout – [http://atl-photography.com/wordpress/events/wpg2?g2_itemId=414](http://atl-photography.com/wordpress/events/wpg2?g2_itemId=414)
 * If you go through to the picture page then it’s the same, the layout i correct
   depending on the amount of text under a photo. You can see two examples below.
 * Correct Layout – [http://atl-photography.com/wordpress/events/wpg2?g2_itemId=420](http://atl-photography.com/wordpress/events/wpg2?g2_itemId=420)
   
   Incorrect Layout – [http://atl-photography.com/wordpress/events/wpg2?g2_itemId=1642](http://atl-photography.com/wordpress/events/wpg2?g2_itemId=1642)
 * Can anyone help me out where I can change the width so that it all looks the 
   same? Any help is really appreciated.
 * Thanks

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

 *  [Phil](https://wordpress.org/support/users/owendevelopment/)
 * (@owendevelopment)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071812)
 * Remove width:auto from your stylesheet (line 1209):
 *     ```
       table {
           border-collapse: collapse;
           border-spacing: 0;
           margin: 0 0 20px;
           padding: 0;
           width: auto;
       }
       ```
   
 * so finished should be:
 *     ```
       table {
           border-collapse: collapse;
           border-spacing: 0;
           margin: 0 0 20px;
           padding: 0;
       }
       ```
   
 * The ‘auto’ setting will automatically fix it’s width to the internal size of 
   the container, so by removing this, it is then kept at 100%.
 *  Thread Starter [Ballyman](https://wordpress.org/support/users/ballyman/)
 * (@ballyman)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071817)
 * Thanks. Is that from the WPG2 stylesheet or the Gallery2 stylesheet or my WP 
   Theme stylesheet?? I presume it’s style.css I am looking for?
    Sorry for the 
   stupid questions – I’m not too well up on all of this 🙂
 *  [Phil](https://wordpress.org/support/users/owendevelopment/)
 * (@owendevelopment)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071826)
 * It will be your general stylesheet.
 *  Thread Starter [Ballyman](https://wordpress.org/support/users/ballyman/)
 * (@ballyman)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071832)
 * I found it!! Thanks a million for your help. My head was wrecked trying to figure
   it out!!
 *  [Phil](https://wordpress.org/support/users/owendevelopment/)
 * (@owendevelopment)
 * [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071837)
 * No problem. Be sure to check other pages of the site to ensure it hasn’t messed
   anything else up.

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

The topic ‘Gallery2/WPG2 Page Width problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/owendevelopment/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/gallery2wpg2-page-width-problems-1/#post-2071837)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
