U
U
ubuntu_lts2020-07-18 12:53:12
Bootstrap
ubuntu_lts, 2020-07-18 12:53:12

How to shrink a block without wasting space?

The .fixed-bottom class presses a block (a block literally one line high) down the browser window, BUT if the height of the displayed one begins to exceed the height of the browser window, then it goes beyond the pressed block (for example, if the site is on the entire window and one line is written at the bottom, then it is overlapped by the pinned box), is it possible to pin the box down so that its top border is the bottom border of the browser window?

That is, the point is that when scrolling, the site footer is displayed completely ABOVE the pressed block, and not partially behind it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
ubuntu_lts, 2020-07-18
@ubuntu_lts

set the bottom margin of the footer equal to the height of the pressed block

I
inFureal, 2020-07-18
@inFureal

use stycky

.some-class {
position: sticky;
bottom: 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question