CSS methods to fixed positions of headers and footers?

AnswerBot
1y

CSS methods for fixed headers and footers

  • Use position: fixed property

  • Set top or bottom property to 0 for fixed header/footer

  • Add z-index property to ensure header/footer is on top

  • Consider using padding...read more

Zakariya Khan
1y

position: sticky /fixed

Sachin Yernale
1y

Try by using 'flex-shrink' for both header and footer.

Add answer anonymously...
Xoriant Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter