Steven Matthews
Steven Matthews

Reputation: 11285

How to freeze a column using Javascript

I have a two column layout via CSS, and I'm wondering how I can make the list on the sidebar column stay frozen down as the user scrolls down on the page

Upvotes: 0

Views: 480

Answers (1)

mkk
mkk

Reputation: 7693

Just use CSS property:

 position: fixed;

The description of it might be "The element is positioned relative to the browser window", I assume this is what you want to achieve.

Upvotes: 1

Related Questions