Uikit always show scrollbar

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:

<style>    
    .main {
    overflow-y: scroll;
</style>
}

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 ...


This page has been viewed 1035 times. First hit: 30-Oct-2015 13:26:43
Share email, Google+, Twitter, Facebook.
comments powered by Disqus
Table