Limit image height/width with CSS/JS/PHP?

HomeForums(E)2 Photo Gallery (The Open Source One)Sample of (E)2 Photo GalleryLimit image height/width with CSS/JS/PHP?

This topic has 2 voices, contains 1 reply, and was last updated by  E2 1513 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
March 31, 2008 at 2:09 am #2529

Dear e2 people,

First of all, excellent product! It works like a charm ;)

I do have one question though:
Is it possible to override the settings for height/width in the gallery, through either CSS, PHP or JS? I’m not using the uploader since i’m connecting the gallery to an existing image database.

Example: i have a picture coming from a database (so it’s not uploaded through the uploader) with the dimensions (WxH) of: 500×752. The problem is that the gallery will be opened in a modal box which has a maximum height of 500. Add the thumbnail box height to it and you will see even less than half of the picture.

I hope you can help me out on this one, i allready tried different things in the CSS but i’m unable to override, so maybe it needs to be done in JS somewhere. Many thanks in advance.

Kind regards,

Martijn

March 31, 2008 at 9:19 am #2530

E2

Yes you can change the dimensions.

Open up the stylesheet you are using and look for:

#main_image_wrapper

You’ll find the width of 600px and height of 399px

If you change this width and height to the width and height you’d like you’ll should be good to go.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.