Menu
Hi, I am currently learning CSS and I haven’t finished the course yet, I couldn’t wait to start building a project, it looks good and it even has some cool animations, but the confusing thing for me now is the placing or shaping or positioning of elements.
In my project, there are 3 elements, one inside the other, I use margin left and margin right and set the same number of pixels on each side to center my element (also in HTML, I put divs in correct order) and it’s all centered, but is it better to use width and height? and find a way to center the element like using margin:auto?
Thanks in advance for the answers.