Search…

X3 Photo Gallery Support Forums

Search…
 
localhost
Experienced
Topic Author
Posts: 158
Joined: 20 Sep 2011, 07:09

Limit screen size to 1000px

02 Mar 2012, 19:07

Hey guys, how can I possibly change the settings to limit the screen size of my theme to 1000px wide and also to make sure it is in the center of the browser... thanks!

http://www.larryanda.com/photography/

I have used the embed_example and limit the screen size but not centered..

http://www.larryanda.com/photography/ho ... ent/start/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Limit screen size to 1000px

02 Mar 2012, 22:04

I am not quite sure what exactly you want to achieve by "limiting screen size", because I would imagine you are embedding the gallery into a block into your custom page? Just like any other item in a html page, you would limit it by for example a table of a <div> block set at a specific width. In your case, it sounds like you just want to limit it no matter what, even if the area on the sides are just void? May I ask what the point of this is?

Nevertheless, to center a <div> set at a specific width, you can use some CSS like this:
Code
<div style="margin: 0 auto; width: 1000px;"> ... Embed gallery here, but replace width with 1000px instead of 100% ... </div>
 
localhost
Experienced
Topic Author
Posts: 158
Joined: 20 Sep 2011, 07:09

Re: Limit screen size to 1000px

02 Mar 2012, 23:56

Hi,

I basically want it to look like this:
Image Photoshopped to centered the sample image.

Instead of the one that looks like in here: http://www.larryanda.com/photography/ho ... ent/start/

Noticed that the website on my screenshot is in the middle and limited by width... whilst the embedded imaguvue installation is on the left hand side of the screen... sorry! It's hard for me to explain...
 
localhost
Experienced
Topic Author
Posts: 158
Joined: 20 Sep 2011, 07:09

Re: Limit screen size to 1000px

03 Mar 2012, 00:06

I tried your code and yes it works.... thank you.

One more thing, do you know the exact hex code for the default theme background?... I tried matching it with #212121 but I can still see some lines :D
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Limit screen size to 1000px

03 Mar 2012, 23:12

localhost wrote:One more thing, do you know the exact hex code for the default theme background?... I tried matching it with #212121 but I can still see some lines :D
The default theme background is a gradient, with lines in it ... It does fade into a color at the bottom though: #111111.