Home Account

Uikit always show scrollbar

07-Oct-2015 16:31:17 dennis

Tags: css uikit

Uikit does not automatically show right scrollbar in order to prevent you HTML content from jumping forth and back. This happens if the scrollbar on one page disappears (because the page does not take up all hight of your browser. And then on the next page scrollbars re-appears because the the is so long, that it needs scrollbars.

In order to fix this you can just add something like this after your <body> tag:

    .main {
    overflow-y: scroll;

And then add the following class to your bodytag:

<body class="main">

Im am new to uikit, so maybe there is a much simpler way ...