Question:
How can I resize the Wix Block programatically or fit to the enclosing element?
I have a Custom Element that resizes on load depending upon image and its dynamic, each time resizes how can
Product:
Wix Blocks, custom element , Wix Editor
What are you trying to achieve:
A dynamic size varying Custom element inside Wix block, and want to resize Wix block to fit dimensions of my custom element. As I dont have control over predefined size inside.
What have you already tried:
- Tried setting height and width to 100%
- Tried Fluid settings.
Additional information:
Try this page both on desktop and mobile, and the custom element resizes where as wix block gets fixed