Hello. Need help from those who understand layout.

I have an element with content (arbitrary height, fixed width), it is inside an element with position:fixed . Above it is a cap (element of a fixed height). How to make the element attached to the bottom edge of the page and at the same time display a vertical scroller when needed?

alt text

I tried to do this, but it turns out that either it does not attract to the bottom edge, or it stretches to the full, ignoring overflow: auto .

    1 answer 1

    Try something like this . Although such things need to be done taking into account other styles that can and most likely will affect this block.