+ 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
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
+ 40
post your code link with the question , so the others can easily help you .☺☺
+ 2
Okay thanks for the tip