I am aiming to create a div with simple header, content, and footer sections. Here is the design I am trying to achieve: https://i.stack.imgur.com/QfnGa.png
You can check out my code on jsfiddle.
I'm having trouble understanding how the relative layout works for the footer in relation to its parent element (in this case, the class="main"
). The expected behavior would be for the footer to adjust to the bottom of the main class, but it's not working as intended.
Can you help me identify where I made a mistake?