Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

hide scrolbar tailwind

/*
    https://github.com/tailwindlabs/tailwindcss/discussions/2394
    https://github.com/tailwindlabs/tailwindcss/pull/5732
*/
@layer utilities {
    /* Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }

    .no-scrollbar {
      -ms-overflow-style: none; /* IE and Edge */
      scrollbar-width: none; /* Firefox */
    }
}

<div className="no-scrollbar overflow-y-auto">
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hide #scrolbar #tailwind
ADD COMMENT
Topic
Name
8+8 =