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

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

This topic contains 1 reply, has 2 voices, and was last updated by  E2 5 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1298

    Anonymous

    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

    #1299

    E2
    Member

    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.