# Override sizing in custom container

**URL:** <https://forums.realmacsoftware.com/t/override-sizing-in-custom-container/45686>\
**Category:** RapidWeaver Elements\
**Created:** [December 21, 2024, 4:57am UTC](https://forums.realmacsoftware.com/t/override-sizing-in-custom-container/45686 "2024-12-21T04:57:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bartje](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bartje/32/1210_2.png) [@Bartje](https://forums.realmacsoftware.com/u/Bartje)\
**Post date:** [December 21, 2024, 4:57am UTC](https://forums.realmacsoftware.com/t/override-sizing-in-custom-container/45686/1 "2024-12-21T04:57:38Z")

</div>

When using my custom component, I want to override the values based on the screen size. I set the default values in the mobile section and then want to adjust the values for larger screens by clicking the green dots. However, the value from the mobile setting remains applied everywhere. How can I fix this?

 ![mobile](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/e/3eed8daf186a800c65093f87defb50bb611c86e7.jpeg)  
 ![tablet](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/5/f/5f21e1004258c5a46488f36de0273b2555d5735b.jpeg)

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [December 21, 2024, 10:49am UTC](https://forums.realmacsoftware.com/t/override-sizing-in-custom-container/45686/2 "2024-12-21T10:49:14Z")

</div>

We’d need to take a look at the code in your custom component, but at a guess It looks like you’re not actually using the values to resize the image from the text fields.

It’s most likely due to a coding error in your custom component. If you can share it we can take a look for you and see what’s going on ☺

---

<div class="post-metadata">

**Author:** ![Bartje](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bartje/32/1210_2.png) [@Bartje](https://forums.realmacsoftware.com/u/Bartje)\
**Post date:** [December 21, 2024, 7:04pm UTC](https://forums.realmacsoftware.com/t/override-sizing-in-custom-container/45686/3 "2024-12-21T19:04:27Z")

</div>

I already suspected that the issue was due to the fact that I was entering the dimensions as a plain number. I was wondering which property I should use for this.
