+ 4

HTML and CSS

Hi, how make a box set in the middle of page, like text-align for text? Thanks!

6th May 2020, 5:09 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
3 Respostas
+ 3
Use this for parent of the box .parent { display: flex; align-items: center; justify-content: center; }
6th May 2020, 5:17 AM
Bhavya
Bhavya - avatar
+ 3
Thank you so much!
6th May 2020, 5:19 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
0
https://t.me/Coders_Crafters join our Teligram group for discussion about HTML 5 & CSS codes questions and many more
13th Oct 2023, 4:05 AM
Alison Pinto
Alison Pinto - avatar