Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


Force vertical scrollbar

This is invalid CSS, but it works in everything except Opera. The reason for this is to prevent “centering jumps” when navigating back and forth between pages with enough content to have a vertical scroll bar and pages that do not.

html {overflow-y: scroll;}


Enter your comment:
N S​ T V J
development/css/force_v_scroll.txt · Last modified: 2019/10/31 09:04 (external edit)