Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] How to center all widgets in (right) sidebars? (http://forum.bytesforall.com/showthread.php?t=4352)

gxxfy Nov 9, 2009 01:14 PM

[SOLVED] How to center all widgets in (right) sidebars?
 
Hi there

Great theme, everything worked out until now. But I did not figure out until now how to center all widgets in the (in my case the right) sidebar? There is a Nextgen-Gallery with 3 thumbnails and it looks just terrible with its alignment to the left... Here's the page: www.wheatonriver.net

Thanks for advice and all the best from Zurich
Goofy

juggledad Nov 9, 2009 05:35 PM

If you look at the source of the page and locate the right sidebar, you will see
HTML Code:

<!-- Right Sidebar -->
<td id="right">

        <div id="ngg-images-3" class="widget ngg_images">
<div class="hslice" id="ngg-webslice" >
<h2 class="widgettitle entry-title"></h2>
<div class="ngg-widget entry-content">
<a href="http://www.wheatonriver.net/wp-content/gallery/gallery-home/img_5417.jpg" title="" class="shutterset_sidebar_3"><img src="http://www.wheatonriver.net/wp-content/gallery/gallery-home/thumbs/thumbs_img_5417.jpg" width="100" height="67" title="img_5417" alt="img_5417" /></a>

So this is created by NextGen. By looking at the beginning of the source you can locate the line
HTML Code:

http://www.wheatonriver.net/wp-content/plugins/nextgen-gallery/css/nggallery.css
the css NextGen uses. Now by entering that in the browser address you can look at the CSS and check for each of the ID+ and CLASS= entries to see if any have a css selector associated with it.

When you find one, examine the css rules that are applied. One probably is causing the left justification. When you find it, you can code a CSS Insert to override it.

gxxfy Nov 9, 2009 11:46 PM

That easy, worked perfectly well, thanks!

Regards
Goofy


All times are GMT -6. The time now is 06:05 PM.

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