Hello, I love your work. To specify the width using the desktop-first approach, in the body include the max width given in the style sheet
body{
max-width: 1440px;
margin: 0 auto;
}
Later on, when modifying the styles for the mobile display, use the media query and specify the width of the mobile device there
/*mobile design styles*/
@media (max-width: 375px){
body{
max-width: 375px;
margin: 0 auto;
}
Note: The "margin: 0 auto" is used to centralize your page on every screen both vertically and horizontally so it's necessary you include it in your work
-Margins are used to create space around elements, outside of any defined borders.
-Padding is used to create space around an element's content, inside of any defined borders.
-The CSS border properties allow you to specify the style, width, and color of an element's border.
Please check out the link CSS Margin - W3 Schools for more information about how they are used.
Marked as helpful