BEM – CSS naming convention
October 7, 2022
The Block, Element, Modifier methodology (commonly referred to as BEM) is a popular naming convention for classes in HTML and…
Here is a CSS code snippet to allow scroll but hide the scrollbar in your browser.
/* hide scrollbar but allow scrolling */
element {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
overflow-y: scroll;
}
element::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
}
Tags: