How do I centre my code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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