Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Centering a gallery or slideshow with NextGen (http://forum.bytesforall.com/showthread.php?t=17095)

yukoner Mar 22, 2012 11:21 AM

Centering a gallery or slideshow with NextGen
 
I've spent a couple of days now trying to figure out how to get a slideshow from NextGen Gallery to center on the center column to no avail.

Thus, I am asking for your assistance.

If I use the simple <center>[slideshow id=1 w=600 h=400]</center> it works in the browsers I have tried it in but I keep reading that it's not a good idea to use this for centering.

Anyone have a better solution?

Norm

juggledad Mar 22, 2012 11:57 AM

nextgen has it's own CSS styling. You should look at the source of the page and find the gallery. Look for an ID or class that you can use and add a CSS to center it. (FireBug in FireFox)
Here is a link where you can read and test aligning block elements http://www.w3schools.com/css/css_align.asp

cabdziner Mar 29, 2012 07:18 AM

Try this...

Determine the width of your slideshow, then create a "div" and enclose the NGG shortcode inside of it.

Code:

<div style="width:350px; margin:0 auto;">
[slideshow id="x"]
</div>

Change the width to whatever works best with your slideshow image size.

This should work.


All times are GMT -6. The time now is 07:03 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.