Footer problem with Helix templates - Forum | JoomShaper
Staff replied Helix Framework

Footer problem with Helix templates

Asked by Mark Coles 2 years ago Last activity 2 years ago

When the main content is not full enough the footer is in the middle of the viewpoint. It looks really bad.
I always have to add this css to fix the problem.

html,
body {
  height: 100%;
  margin: 0;
}

body.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh; // Ensure the body takes up the full viewport height
}

.body-wrapper {
  flex: 1 0 auto; // Allow the .body-wrapper to grow and push the footer down
  display: flex;
  flex-direction: column;
}

#sp-main-body {
  flex: 1 0 auto; // Allow the #sp-main-body to grow and push the footer down
}

#sp-footer {
  flex-shrink: 0; // Prevent the footer from shrinking
}

1 reply

Rashida Rahman Staff

Hi there!

Thanks for reaching out.

This is the default behavior, yes. Sorry if you finds it uncomfortable. And yes, you need custom CSS to achive what you want with footer. I can give you custom CSS for sticky footer also if you think it will be good for you.

Moreover, I will convey your wish to the team. Lets see what the team thinks about it.

Best Regards

Log in to reply.