See this web page .
- First, try scrolling it, make sure the left panel remains fixed.
- Resize the window so that not all the contents of the left panel are displayed. Now scroll. This time the left panel is not fixed.
There is jquery on this page that calculates the height of the left column, compares it with the height of the window, and then makes the position of the left column fixed or absolute.
However, I am wondering if it is possible to achieve something similar only through HTML and CSS, without using jQuery or the like.
Any suggestions? In short, I'm looking for a panel with content that remains fixed but scrolls if the content overflows. But scrolling should be along with the whole page.
source share