# Wix Block resize

**URL:** <https://forum.wixstudio.com/t/wix-block-resize/57925>\
**Category:** Ask the community\
**Tags:** wix-editor, question, design, wix\
**Created:** [April 7, 2024, 2:18am UTC](https://forum.wixstudio.com/t/wix-block-resize/57925 "2024-04-07T02:18:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pixobe\_Software](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pixobe_software/32/90588_2.png) [@Pixobe\_Software](https://forum.wixstudio.com/u/Pixobe_Software)\
**Post date:** [April 7, 2024, 2:18am UTC](https://forum.wixstudio.com/t/wix-block-resize/57925/1 "2024-04-07T02:18:58Z")

</div>

**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:**

1. Tried setting height and width to 100%
2. Tried Fluid settings.

**Additional information:**  
Try this page both on desktop and mobile, and the custom element resizes where as wix block gets fixed

> **[Before and After Image Slider | Pixobe](https://pixobe.wixsite.com/pixobe/before-and-after-image-slider)**
>
> Easy to configure before and after Wix app, with lots of customization.
