# How do I change an image height using Wix code please?

**URL:** <https://forum.wixstudio.com/t/how-do-i-change-an-image-height-using-wix-code-please/27728>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 29, 2018, 9:59am UTC](https://forum.wixstudio.com/t/how-do-i-change-an-image-height-using-wix-code-please/27728 "2018-01-29T09:59:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian-alderson](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/brian-alderson/32/780_2.png) [@brian-alderson](https://forum.wixstudio.com/u/brian-alderson)\
**Post date:** [January 29, 2018, 9:59am UTC](https://forum.wixstudio.com/t/how-do-i-change-an-image-height-using-wix-code-please/27728/1 "2018-01-29T09:59:01Z")

</div>

How do I change an image height programmatically using Wix code please?

I can’t seem to find how to style the appearance of page elements in Wix code. Is there any access to the CSS of the control elements?

Thanks

---

<div class="post-metadata">

**Author:** ![ofer-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ofer-wix/32/688_2.png) [@ofer-wix](https://forum.wixstudio.com/u/ofer-wix)\
**Post date:** [January 30, 2018, 8:41am UTC](https://forum.wixstudio.com/t/how-do-i-change-an-image-height-using-wix-code-please/27728/2 "2018-01-30T08:41:54Z")

</div>

Hi Brian,

As far as I know, it is only possible to set an image size at design-time, and it can’t be changed programmatically.

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [May 12, 2025, 2:39pm UTC](https://forum.wixstudio.com/t/how-do-i-change-an-image-height-using-wix-code-please/27728/3 "2025-05-12T14:39:19Z")

</div>

A post was split to a new topic: [Can I change an image height using code?](https://forum.wixstudio.com/t/can-i-change-an-image-height-using-code/70879)
