Support Team
posted this
13 February 2017
Hi,
The behaviour of the background image is the same no matter where it is used (Slider, Section, etc). This behavior is defined by CSS specification.
So, the bg image resizes depending on the size of the control to which it was added. The type of the resizing depends on the chosen size option: cover, contain, 100% 100%, etc. In any case, the size of the bg image does not affect the size of its container - the Slide, in our case.
The Slide is regular <div>
which behavior is defined by CSS specification too. It has 100% width of its parent and height which depends on the content inside or some fixed value. The elements inside Slide are positioned using absolute positioning (so you can move them). Therefore the Slider height may be fixed only. Otherwise it will be collapsed.
Unfortunately you cannot resize Slide with background image in the same way as regular html image can be resized.
The only option is to locate the Image control inside Slide, changing its positioning to relative and removing the fixed Slider height. In this case image may resize the Slide.
Thank you,
Olivia
Hi,
The behaviour of the background image is the same no matter where it is used (Slider, Section, etc). This behavior is defined by CSS specification.
So, the bg image resizes depending on the size of the control to which it was added. The type of the resizing depends on the chosen size option: cover, contain, 100% 100%, etc. In any case, the size of the bg image does not affect the size of its container - the Slide, in our case.
The Slide is regular `<div>` which behavior is defined by CSS specification too. It has 100% width of its parent and height which depends on the content inside or some fixed value. The elements inside Slide are positioned using absolute positioning (so you can move them). Therefore the Slider height may be fixed only. Otherwise it will be collapsed.
Unfortunately you cannot resize Slide with background image in the same way as regular html image can be resized.
The only option is to locate the Image control inside Slide, changing its positioning to relative and removing the fixed Slider height. In this case image may resize the Slide.
Thank you,
Olivia