+ 2

How to make proper alignments in HTML?

Im in the middle of building a website and I cant seem to align my div element perfectly in between the left & right (center) are there any cheats to do this?

27th May 2018, 11:07 PM
Kyle
Kyle - avatar
1 Resposta
+ 8
Div is a block level element so it takes the whole width. You should specify a width then make the margin-left and margin-right set to auto. https://code.sololearn.com/Wd4Zh5FwXK21/?ref=app
27th May 2018, 11:52 PM
Alquen
Alquen - avatar