How to block scrollbar when browsing a desktop device?

0

I'm using Bootstrap 4. How do I block ' scrollbar ' (the scrollbar) when navigating on a desktop desktop     

asked by anonymous 01.12.2017 / 20:31

1 answer

0

You can use media-queries to remove the scrollbar. In the example below, we filter the media type screen and the min-width width to characterize a Desktop .

This allows us to remove the scroll considering only the selected features.

    /* Medium Devices, Desktops */
    @media only screen and (min-width : 992px) {
      html {
             overflow: hidden;
           }
    }
    
01.12.2017 / 20:58