Fixes the header and footer with a flexible middle container