localhost
Experienced
Joined: 20 Sep 2011
Posts: 39
Sydney, Australia
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/


Re: Limit screen size to 1000px
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7710
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>

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


Re: Limit screen size to 1000px
localhost
Experienced
Joined: 20 Sep 2011
Posts: 39
Sydney, Australia
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...


Re: Limit screen size to 1000px
localhost
Experienced
Joined: 20 Sep 2011
Posts: 39
Sydney, Australia
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


Re: Limit screen size to 1000px
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7710
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.

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


 
Imagevue Forums HomeForum  View topic - Limit screen size to 1000px5 posts