How to style data-value attributes with CSS
October 9, 2022
Here is a great way to style any data-attributes using CSS properties. Here is the article source courtesy of CCS-Tricks.
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: