+ 2

How do I move a box to the center of a screen

Trying to make a hallway of a game but I can’t figure out how to position a quadrilateral in the bottom center of the screen

8th Feb 2018, 6:40 AM
Unknown
3 odpowiedzi
+ 8
use css #box { margin-left: auto margin-right: auto; width: 100px; // this depend on you height: 100px; // this depend on you position: relative; top: calc(100% - 100px); } a sample code: https://code.sololearn.com/WXHF0UO875DS/?ref=app
8th Feb 2018, 9:34 AM
Amethyst Animion
Amethyst Animion - avatar
+ 40
post your code link with the question , so the others can easily help you .☺☺
8th Feb 2018, 9:21 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 2
Okay thanks for the tip
8th Feb 2018, 9:24 AM
Unknown