How can I hide the vertical scroll bar in Webflow?

Published on
September 22, 2023

To hide the vertical scroll bar in Webflow, you can utilize custom CSS code. Here's how you can do it:

  1. Open the Designer in Webflow and select the page where you want to hide the vertical scroll bar.
  2. Go to the Dashboard and click on the "Custom Code" tab.
  3. In the "Head Code" section, insert the following CSS code:
body::-webkit-scrollbar {  width: 0.5em;}body::-webkit-scrollbar-track {  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);}body::-webkit-scrollbar-thumb {  background-color: darkgrey;  outline: 1px solid slategrey;}
  1. Save and publish your site to see the changes.

This CSS code targets the scrollbar on the body element and customizes its appearance. The "width" property determines the width of the scrollbar, the "box-shadow" property stylizes the track of the scrollbar, and the "background-color" property sets the color of the scrollbar thumb (the draggable portion of the scrollbar).

Keep in mind that this code will only hide the scrollbar visually, but users will still be able to scroll the page using other means, such as the keyboard or touch gestures. It's important to consider accessibility and usability when deciding to hide scrollbars.

By following these steps, you'll be able to hide the vertical scroll bar in Webflow, giving your website a sleek and minimalist look.

Note: This solution uses CSS code for Webkit-based browsers (Chrome, Safari). If you want to support other browsers like Firefox, you can add similar customizations using vendor prefixes.

Additional Questions:

  1. How can I customize the appearance of the horizontal scrollbar in Webflow?
  2. Is it possible to hide the scrollbar only on certain sections of a page in Webflow?
  3. What are some alternative methods to hide the scrollbar in a Webflow website?