Title: centering nextgen slideshow
Last modified: August 20, 2016

---

# centering nextgen slideshow

 *  [cornelis27](https://wordpress.org/support/users/cornelis27/)
 * (@cornelis27)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/centering-nextgen-slideshow/)
 * Hi,
    Anybody know how to center the NextGen slideshow on a page? I use the Photocrati
   theme. Now the slideshow on my front page is aligned to the left. It’s ugly. 
   I searched and searched the web, but found no answer. I am familiar with css.
   Thanks in advance Cees [http://ceesmaas.net](http://ceesmaas.net)

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

 *  [lpnotes](https://wordpress.org/support/users/lpnotes/)
 * (@lpnotes)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/centering-nextgen-slideshow/#post-2200106)
 * This is what I did:
 * IN .PHP FILE WHERE YOU WANT IT
 *     ```
       <div id="ngg">
       <?php echo neggShowGallery(PUT GALLERY ID NUMBER HERE) ?>
       </div>
       ```
   
 * IN .CSS
 *     ```
       #ngg {
       width: [NUMBER PX]
       left: 50%;
       margin-left: [1/2 of the NEGATIVE OF THE WIDTH];
       }
       ```
   
 * So for example:
 *     ```
       #ngg {
       width: 1000px;
       left: 50%;
       margin-left: 500px;
       }
       ```
   
 *  [golf1025](https://wordpress.org/support/users/golf1025/)
 * (@golf1025)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/centering-nextgen-slideshow/#post-2200109)
 * Hi,
    Thanks for the tip as I struggle with the same (www.quiterightphoto.nl) 
   but being a noob: which .php and which .css? Thanks! Jan
 *  [lpnotes](https://wordpress.org/support/users/lpnotes/)
 * (@lpnotes)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/centering-nextgen-slideshow/#post-2200246)
 * Sorry I didn’t see your post sooner!
 * If you go to Appearances -> Editor in the backend, you’ll see all the files you
   need. The style.css file is where you put the CSS code and you put your gallery
   code in a PHP file depending on where you want it to be located. A safe choice
   might be index.php, which is your main page.

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

The topic ‘centering nextgen slideshow’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [lpnotes](https://wordpress.org/support/users/lpnotes/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/centering-nextgen-slideshow/#post-2200246)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
