V
V
Vitaly2017-06-08 15:12:38
css
Vitaly, 2017-06-08 15:12:38

How to make a footer at the bottom of a page on a screen with little information?

Good day everyone.
The bottom line is this, for example, I have a small business card website with 4 pages, everything is banal, header, content, footer.
But here's the catch, how to make it so that on the page, for example, with contacts, make sure that the footer is at the bottom of the screen, given that there is little information on the page, the footer just follows the content, but in this case it should be simply placed at the bottom of the screen ( and on all types of screens if necessary).
Can we solve it?
PS New techniques like flex are not suitable, support for some older browsers is needed.
A good example of what I get:
6eae118ca22e4d2582c098aa18101b58.png

Answer the question

In order to leave comments, you need to log in

7 answer(s)
N
Negwereth, 2017-06-08
@Negwereth

lmgtfy.com/?q=footer+at+bottom

V
Viktor Taran, 2017-06-08
@shambler81

everything is much simpler, for this a wide footer is laid in the design.

I
iBird Rose, 2017-06-08
@iiiBird

https://jsfiddle.net/78ew73su/

A
Alexander, 2017-06-08
@l1tero

Class navbar-fixed-bottomsince you are using bootstrap

M
Maxim Tarabrin, 2017-06-08
@padr1no

You set the body:
display: flex and flex-direction: column
And then you set the content block to flex: 1
Then your content will expand with free space.

I
Ivan Bogachev, 2017-06-08
@sfi0zy

How to make a footer at the bottom of the page... Is it solvable?

And for the eighth time, I'll add this demo to the answer ... I'll count to 13 and start complaining about questions like this.

M
Misha, 2017-06-10
@hvdd

Emulation of table behavior. Browser support is very good .

.container {
  display: table;
  height: 100%;
  width: 100%;
}

.content {
  display: table-row;
  height: 100%;
}

Demo on codepen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question