How to align box containers using CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to align box containers using CSS?

https://code.sololearn.com/Wsm83c4VQGKw/?ref=app Hi, beginner here. It's my first time to post a question. When I try to run the html & css code above, the <div> elements does not seem to align with each other. Anyone know how to fix this by making them aligned using CSS?

16th Dec 2021, 1:02 PM
David Rondina
David Rondina - avatar
1 Answer
+ 1
Give them well margins, padding, width and height. It will be good edit]: try giving your div's width 80% you will see it get better. [tip]: complete this course: https://www.sololearn.com/Course/Responsive-Web-Design/?ref=app
16th Dec 2021, 1:25 PM
NEZ
NEZ - avatar