# https://p5js.org/reference/#/p5.Element/position

**URL:** <https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737>\
**Category:** Beginners\
**Created:** [September 8, 2020, 1:04pm UTC](https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737 "2020-09-08T13:04:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ats3788](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ats3788](https://discourse.processing.org/u/ats3788)\
**Post date:** [September 8, 2020, 1:04pm UTC](https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737/1 "2020-09-08T13:04:02Z")

</div>

Hello I fiddle with P5 and tried this

[https://p5js.org/reference/#/p5.Element/position](https://p5js.org/reference/#/p5.Element/position)`Preformatted text`

```auto
  let cnv = createCanvas(100, 100);
  // positions canvas 50px to the right and 100px
  // below upper left corner of the window
  cnv.position(50, 100);

```

But this does not work position is not a part createCanvas  
How I’m wrong ?  
THX

---

<div class="post-metadata">

**Author:** ![ats3788](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@ats3788](https://discourse.processing.org/u/ats3788)\
**Post date:** [September 8, 2020, 1:10pm UTC](https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737/2 "2020-09-08T13:10:36Z")

</div>

I See what was missing

I had just she short library.
