.class { -ms-overflow-style: none; /* Internet Explorer 10+ */ scrollbar-width: none; /* Firefox */ } .class::-webkit-scrollbar { display: none; /* Safari and Chrome */ }