
Shobha
The best way to predict the future is to invent it
How do you create a sticky footer using CSS?
A sticky footer can be created using flexbox by setting the container as display: flex with flex-direction: column. The main content area is given flex: 1, which ensures it occupies available space, pushing the footer to the bottom of the viewport when content is short. This method works efficiently for dynamic content and keeps the layout adaptive.