Gallery 2 how to center banner

btblue

Joined: 2006-01-07
Posts: 64
Posted: Thu, 2012-01-05 16:10

Hi,
I created a new banner for my site www.lloydspitalnikphotos.main.php and am trying to get it centered on the page. Is there a way of doing this? I've tried <center> tag which does nothing and also class=center. Not sure if CSS modification is required and if so where to put it.
Thanks for any help and Happy New Year.

Last Run Details:

Gallery URL = http://lloydspitalnikphotos.com/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.12 cgi
Webserver = Apache
Database = mysqli 5.0.90-msl-usrs-sure2-log, lock.system=flock
Toolkits = Getid3, Thumbnail, ImageMagick, NetPBM, Exif
Acceleration = none, none
Operating system = Linux s435.sureserver.com 2.6.32.2-grsec #1 Wed Jan 6 05:14:26 EST 2010 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTB6 (.NET CLR 3.5.30729) AutoPager/0.6.0.20
Rows in GalleryAccessMap table = 16
Rows in GalleryAccessSubscriberMap table = 4520
Rows in GalleryUser table = 2
Rows in GalleryItem table = 4518
Rows in GalleryAlbumItem table = 263
Rows in GalleryCacheMap table = 0

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-01-05 17:25

The banner is in a div with class=gsHeader but you do not have a gsHeader defined in any of the loaded css files on your site ... looks like a slightly botched custom job.

Anyway, try adding ...

#gsHeader {
    text-align: center;
}

... to the bottom of your theme.css file. I notice this is pulled from matrix and you will have to edit the theme.css file under the matrix theme.

For future reference, instead of pulling files from different places, you can create your own theme by copying the matrix theme folder and renaming it along with some references in theme.inc

PS: Remember to clear your browser cache. First use "Control R" to reload the page and then reload it again using the reload button.

--
dakanji.com