Centering Gallery

paulphotoman

Joined: 2007-10-09
Posts: 4
Posted: Tue, 2007-10-09 22:03

Gallery URL: http://www.hunstanton-info.com/gallery
Gallery version: 1.5.7
Apache version:
PHP version (don't just say PHP 4, please): V4.3.11
Graphics Toolkit: Netpbm
Operating system: Linux
Web browser/version (if applicable):

I have used HTML Wrap to integrate Gallery into my website (see http://www.hunstanton-info.com/gallery). But I would like the Gallery pages to float in the center of the browser, like the rest of the website - see http://www.hunstanton-info.com.

Any ideas how to achieve this please?

Paul

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2007-10-10 09:52

First i'd fix the missing closing </div> for your wrapper and your banner.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
paulphotoman

Joined: 2007-10-09
Posts: 4
Posted: Wed, 2007-10-10 21:15

Jens, thanks for spotting the missing </div> tags - I've put them in now, but the site still isn't in the center.

Does Gallery's CSS tell the site to align left - if so I wonder whether this could be clashing with the CSS that I've added? I'd appreciate any further suggestions.

Paul

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2007-10-11 08:38

Hello,

Someone did this in screen.css:

body {
	text-align: center;
	width: 300px;
	font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    background-color: #FFFFFF;
    color: #FFFFFF;
}

Tell that guy to remove the 'width: 300px'.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
paulphotoman

Joined: 2007-10-09
Posts: 4
Posted: Thu, 2007-10-11 20:42

...and that someone was me! :-) Thanks Jens, that's done the trick! I must check my code more carefully next time.

Paul