SpinTheMic
Pro

Interview practice question

Keeping the footer at the bottom of short pages

Frontend Engineering · HTML and CSS · Beginner

On pages with little content, the footer floats in the middle of the screen. How do you keep it at the bottom?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Body/page wrapper min-height: 100vh (or 100dvh).
  • Flex column with main flex: 1.
  • Or grid with rows auto 1fr auto.
  • Footer stays after content on long pages.
  • Avoid position fixed.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics