Having Issues With The Height Property

I wanted to know if it is appropriate declaring your height on the html element for a fresh html project, so you can work on that. I ran into an issue trying to learn how to build header's & footer's, so I wanted my footer to be at the bottom of the page while my header stays at the top & my main element have some height that fills the whole screen without it having to scroll to reach the bottom. In my codepen, if you comment out the height for the main, the footer & header collapse and become one block but I wanted them to stick to the top & bottom so I declared the height for the main element where content would sit. Here is the link to the Codepen
1 Reply
Mannix
Mannix15mo ago
Want results from more Discord servers?
Add your server