position elements

Hello, I would like to place different elements in different places in my application. I use position(), or offset(). But these two functions do not adapt to the screen size. For example, I would like to place a text at the top left corner. And the text should always stay at the same distance from the edge of the screen. Do you know how to do this?
Thanks

position elements
 
 
Q