css - Hide scrollbar when not necessary, but keep the screen width consistent -


on pretty web browsers, scroll bar displayed when needed. fine, problem when scroll bar displayed, width of screen shrinks. results in awkward shift of content on screen.

i want prevent behaviour width of screen consistent whether scroll bar displayed or not displayed. how can achieve this? don't want use javascript/jquery if possible.

try jquery "perfect scroll" plugin here is: http://noraesae.github.io/perfect-scrollbar/


Comments

Popular posts from this blog

c++ - What's the differece between of link to a dynamic file and as a input object? -

javascript - Feed FileReader from server side files -

Android Unit Testing / Mockito: android.location.Location not mocked -