Canvas - Screenres./Objectpos. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Canvas - Screenres./Objectpos.

is there any way to locate the input like centered so its the same for any device/screen resolution instead of using -width=" " height=" "- in the canvas tag?

7th Oct 2016, 5:00 PM
Elvin Fengler
Elvin Fengler - avatar
2 Answers
+ 1
width: 50%; would work
11th May 2021, 5:34 PM
Wyzebb
Wyzebb - avatar
+ 1
Make sure position is set to relative though or it may not work
11th May 2021, 5:35 PM
Wyzebb
Wyzebb - avatar