Hey there,

could someone please tell me what I have to do, that the gallery is autoscaling itself?
Tried Width: 80% Height: 40%, but it wont work :/

Any ideas about that?

SG :)


juves’s picture

In "Galleria -> Edit Option Set" add responsive:true and set width to auto or delete it
In your CSS set field-wrappers width to 80% and .galleria-container to 100%

juves’s picture

And you probably need to clear Drupal and Browser caches to see changes

juves’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Component: Documentation » Miscellaneous
Category: task » support
Status: Active » Needs review
marcoka’s picture

hm well, i got

Error: Fatal error: Could not extract a stage height from the CSS. Traced height: 0px.
marcoka’s picture


.galleria-container {
  width: 100%;
  height: 100%;

.field-name-field-galleriebild {
  width: 80% !important;

changes nothing, galleria does not appear, meaning cant get size

jamesbenison’s picture

If you set the galleria height option to a number below 2 it will use it as a ratio instead of a height in pixels. You don't need to supply a width in your optionset.

See: http://galleria.io/docs/options/height/

Then just set a % width in your css and galleria will adapt and scale. It works exceptionally well.

jamesbenison’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.