# IMPORTANT FEATURE: Resize & position elements using code

**URL:** <https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [August 13, 2018, 10:00pm UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079 "2018-08-13T22:00:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pptgames](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pptgames/32/1306_2.png) [@pptgames](https://forum.wixstudio.com/u/pptgames)\
**Post date:** [August 13, 2018, 10:00pm UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/1 "2018-08-13T22:00:40Z")

</div>

Dear Wix Code Team,  
This is **very** important for me and other users, so much that this is the 2nd time i request this. Resizing and positioning elements allows us to do so much stuff…

* * *

**How it would work:**

```javascript
// Sizes and positions in px (pixels)

$w("#myElement").width = 80; // Sets the element's width
$w("#myElement").height = 20; // Sets the element's height

$w("#myElement").left = 100; // Sets the element's horizontal position
$w("#myElement").top = 50; // Sets the element's vertical position

// Also possible: get element's size and position
// Example:
return $w("#myElement").width // Returns the element's width

```

Thank you

---

<div class="post-metadata">

**Author:** ![mizhang](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mizhang](https://forum.wixstudio.com/u/mizhang)\
**Post date:** [January 10, 2019, 4:19am UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/2 "2019-01-10T04:19:22Z")

</div>

This should be a basic feature, can it be available?

---

<div class="post-metadata">

**Author:** ![james-rondon-jr](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/james-rondon-jr/32/1835_2.png) [@james-rondon-jr](https://forum.wixstudio.com/u/james-rondon-jr)\
**Post date:** [January 10, 2019, 8:49am UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/3 "2019-01-10T08:49:47Z")

</div>

This is awesome, now I can code in a remote updater for my platform.

---

<div class="post-metadata">

**Author:** ![tyiarramarie](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tyiarramarie/32/10602_2.png) [@tyiarramarie](https://forum.wixstudio.com/u/tyiarramarie)\
**Post date:** [April 3, 2019, 7:56pm UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/4 "2019-04-03T19:56:21Z")

</div>

Agreed.

---

<div class="post-metadata">

**Author:** ![abdulr4hman-almarzou](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/abdulr4hman-almarzou/32/33522_2.png) [@abdulr4hman-almarzou](https://forum.wixstudio.com/u/abdulr4hman-almarzou)\
**Post date:** [September 13, 2024, 5:57am UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/5 "2024-09-13T05:57:49Z")

</div>

Yes please we need this @yisrael-wix

---

<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:** [September 30, 2024, 3:42pm UTC](https://forum.wixstudio.com/t/important-feature-resize-position-elements-using-code/2079/6 "2024-09-30T15:42:59Z")

</div>

Closed on September 30, 2024, 3:42pm UTC


