R
R
Renat2021-06-05 17:06:58
css
Renat, 2021-06-05 17:06:58

How to make the footer be at the bottom of the page?

60bb843fd6802807342127.png
It should be like this (it's easy to do):

footer {
    position: absolute;
    bottom: 0;
}

But if the text reaches the end of the page visibility, you need the footer to be after the text (that is, after scrolling the page)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
WapSter, 2021-06-05
@Keylei

https://proweb63.ru/help/all-about-css/css-footer-...
Have you even tried looking for a solution?

P
pavlo1234554321, 2021-06-05
@pavlo1234554321

footer {
margin-top: auto;
}
ya dumayu luche bez absolute position.

D
Danil Polyansky, 2021-06-05
@danil_polyan

https://codepen.io/danil-polyan/pen/gOmzWqJ?editor...
The footer doesn't need to be set, it's not a header.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question