@LucasEPKSubmitted over 1 year ago
I really struggled with centering everything, and i still don't fully know how to do it well. I also didn't get how desktop and mobile view work.
I really struggled with centering everything, and i still don't fully know how to do it well. I also didn't get how desktop and mobile view work.
Hey Lucas, you did very well with this challenge, there are many ways to center a div with css, and the way you did it used one method using Margin: auto; which will center the div depending on how the div is displaying, if that be display: block; or display: inline;
I would recommend that you also take a look at flex box and learning the basics of that because it is another way of centering an element but also allows for so much more flexibility with mobile and desktop screens.
-Questions-
Hello Adrian,
Hope this helps