Tag Archive for: scroll

Scrollable table (tbody) with 100% height and fixed header

Scrollable table with fixed header

Instead of using absolute positions, containers and so on you can use CSS Grid to set header and body.

Scroll into view

I have created n boxes (divs) with random colors to select one of them randomly and make it visible on the viewport. Every time you rerun the code you will see in your screen the selected box regardless of its position.