Solutons Lounge

Image Slider – How to Set Width to 100% of Parent Container – How do I?


How can I have WeWeb’s native image slider component inherit the width of the parent container its inserted into? I’ve tried leaving the image slider width to auto or 100% width.

Whenever I insert the image slider into a container, the image slider is WAY too wide and extends far beyond the width of the parent container.

I want my image slider to be 100% width of parent container.

My images are set to auto for height and width.

My parent container is set to inline-flex which is in a grid container that is bound to a collection of products.

I’ve also tried inserting super small images like 20×20px in the image carousel, but the image width in a slide doesn’t seem to have an impact on the overall image slider width.



Source link

Exit mobile version