position: sticky

A

Adam
Alton Lanister
Amory Lorch
Arya Stark

B

Balon Greyjoy
Benjamin Kinlan
Benjamin Stark
Bran Stark
Brienne of Tarth

C

Catelyn
Cersi

D

Davos Seaworth
Dagmer

E

Eddard Stark
Edmure Tully
Evelyn

F

Filbert

G

Gendry Waters
Gertrude
Gerry
Gregor Clegane

H

Henry
Hodor
Horrace

I'm too lazy

He really is. Mr Beverloo that is.

X

Xaro Xhoan Daxos

Y

Yara Greyjoy
Ygritte
Yoren

Z

Zach
Ziggy

Code

h3 { position: sticky; top: 5px; background-color: #ddd; padding: 5px;}
.item {
  background-color: #eee;
  border-radius: 5px;
  padding: 5px;
  margin:5px;
}