To get a result like this structure I set a gray background on the body tag and set a maximum width of 900px for all sections (navigation, content area, and footer). The footer is pinned at the bottom using the flexbox.
If not, just change the footer to position static and keep adding elements to the content or set a size of for example 100vh to the content section and you will see that there won’t be any gap with the footer