+ 4

How do I centre my code

On my code called CSS the squares are not centred. How do I do that???

12th Aug 2019, 6:30 PM
Oreagle
Oreagle - avatar
9 ответов
+ 9
Use flexbox for alignment, very flexible properties, justify-content, align-items.
12th Aug 2019, 7:04 PM
Anna/Аня
Anna/Аня - avatar
12th Aug 2019, 7:25 PM
Farhan
Farhan - avatar
+ 4
Thank you so much!
12th Aug 2019, 10:52 PM
Oreagle
Oreagle - avatar
+ 2
Farhan post is best answer for this question
13th Aug 2019, 12:25 PM
Mahesh Muttinti
13th Aug 2019, 1:53 PM
Mahesh Muttinti
+ 2
https://code.sololearn.com/WzmR8YrGM6Ls/?ref=app
13th Aug 2019, 1:57 PM
Mahesh Muttinti
+ 2
Use margin property and set it's value to auto... It'll be centered
17th Aug 2019, 1:42 PM
Prasad Lokhande
Prasad Lokhande - avatar
+ 1
<center> code </center>
13th Aug 2019, 10:55 AM
José Quembi
José Quembi - avatar
0
<center> tag, align tag, inline css, internal css, external css anything we can use
17th Aug 2019, 1:53 AM
Balaji
Balaji - avatar