@Aleroms
Posted
Hi Rishabh, Congrats on getting this project done! Starting off on these projects are a bit difficult but some things that you can do for you next project to help improve your html/css skills are:
- I would recommend looking up some videos about display flex. It helps a lot in centering objects. For example, to center the
div
you could have addeddisplay: flex; align-items: center; justify-content: center
. Doing this will center the div. But the body will only expand as far as the content is, so try addingheight: 100vh
(viewport height) to the body. This will set the height of the document, covering the whole window.
Congrats on the challenge and I hope you learned something! Feel free to reach out as well!