Your Cart

image width and height based on percentage of galleria window

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Questions image width and height based on percentage of galleria window

  • gravatar
    Scot Taylor
    January 22, 2015 at 2:54 am

    I am hoping someone can help me with this as I seemed to
    stumped.
    I have galleria set to 100% width of the browser window and 100%
    height (minus the header height). I would like to have my images
    sized at a percentage of galleria but no matter what I set in css
    or in jQuery it is overwritten?

    I have tried
    $(".galleria-images .galleria-image img").css({"width":"85%",
    "max-width":"85%", "height":"70%",
    "max-height":"1200px"});

    and that does not do anything. I can target the images container
    div “galleria-image” and resize it but when I do that I cannot get
    it to centre in the window?

    Any help would be greatly appreciated.


    gravatar
    Scot Taylor
    January 22, 2015 at 3:59 pm

    After losing much sleep the issue was solved simply with
    “imageMargin”


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand