# Positioning items in a container

**URL:** <https://forum.babylonjs.com/t/positioning-items-in-a-container/6990>\
**Category:** Questions\
**Tags:** tutorial, gui\
**Created:** [November 14, 2019, 1:59pm UTC](https://forum.babylonjs.com/t/positioning-items-in-a-container/6990 "2019-11-14T13:59:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MartynovOleg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/martynovoleg/32/4466_2.png) [@MartynovOleg](https://forum.babylonjs.com/u/MartynovOleg)\
**Post date:** [November 14, 2019, 3:11pm UTC](https://forum.babylonjs.com/t/positioning-items-in-a-container/6990/5 "2019-11-14T15:11:12Z")

</div>

So it was originally, but I don’t know how correctly it will be displayed on different resolutions and mobile devices, the goal is to avoid pixelation (poor image quality) and fix the locations of gui elements, because now elements at different resolutions are displayed in different places)) on friend etc.  
`Or use percentages to arrange elements on the "main screen", and use pixels to arrange elements inside containers. Although, in theory, AdvancedDynamicTexture (what I mean by the main screen) where all the controls are located is the same container`  
I took the idea of ​​switching from pixels to percent from here:

> [@Not sure how to support different screen resolutions with GUI](https://forum.babylonjs.com/t/not-sure-how-to-support-different-screen-resolutions-with-gui/965/3):
>
> Hi guys. [perhaps some info here.](https://forum.babylonjs.com/t/help-recover-my-gui-after-canvas-resize-plus-more/602) I was working with a diagram that needed to survive canvas resize, and sebavan helped me out… with some resize observers. I think… you can simulate different resolutions… by drag-resizing your browser window. For testing, I opened my f12 dev-tools and dragged its horizontal divider… up/down. And I dragged the divider between playground editor and canvas… as another test. This allows for full-power in-playground resolution-testing, I think. Also, you might …

---

_[View the full topic](https://forum.babylonjs.com/t/positioning-items-in-a-container/6990)._
