+ 1

Center the box for me

Hi , I use margin for centering a div box in my web page , but I hate that , what is the best way to center a box (div) inside like body element ? https://code.sololearn.com/W612FdONMhkS/?ref=app https://code.sololearn.com/W612FdONMhkS/?ref=app

11th Jan 2021, 9:36 PM
omar_ctr
omar_ctr - avatar
2 odpowiedzi
+ 6
margin : 0 auto ;
11th Jan 2021, 9:40 PM
Samima Hassan
Samima Hassan - avatar
+ 1
Naryani Priya[Deactivated] this was so helpful , thank u 💖 .
12th Jan 2021, 9:12 PM
omar_ctr
omar_ctr - avatar