e2interactive forums » Sample of (E)2 Photo Gallery

Search:

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

(2 posts)

  1. mWiz
    Member

    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: 500x752. 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

    Posted 3 months ago #
  2. 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.

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.