Footer Problem With Helix Templates - Question | JoomShaper

Footer Problem With Helix Templates

MC

Mark Coles

Helix Framework 1 year 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
}
0
1 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 year ago #162158

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

0