Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

about the style of the scroll bar


How can I change the style of the scroll bar on the right side of the webpage to match the style of the scroll bar on the left menu bar?

version: 9.1.1-typescript


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi,

May I know, which demo you are referring to? So you want to change the browser's main scrollbar style ?

Regards,
Sean



demo1 i think, default demo.
yes,the browser's main scrollbar style.



or can i just hide the browser's main scrollbar? and how?



hello, any progress?

Thanks



Hi,

Can you try to add the below code into vite/src/styles/globals.css


html::-webkit-scrollbar {
@apply w-2; /* Tailwind width for scrollbar */
}

html::-webkit-scrollbar-track {
@apply bg-gray-100 rounded; /* Tailwind styles for track */
}

html::-webkit-scrollbar-thumb {
@apply bg-gray-400 rounded; /* Tailwind styles for thumb */
}

html::-webkit-scrollbar-thumb:hover {
@apply bg-gray-600; /* Tailwind hover color */
}


Regards,
Seam


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(