+ 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?
1 Answer
+ 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