ledy
ledy

Reputation: 1617

css/js: fixed position though scrolling

Does CSS(3) allow me to stick a DIV with position:absolute over the page and keep it e.g. in the middle of the browser window - even when scrolling?

Currently I re-draw and re-position the DIV again and again when the user scrolls up/down/left/right, but maybe css3 has a better way to achieve the same.

Upvotes: 0

Views: 282

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324790

That's what position:fixed is for.

Upvotes: 5

Related Questions