How to make a scrollbar thin in the textarea field (without JS)?
Here it is:
textarea {width:200px;height:80px;resize:none;} textarea::-webkit-scrollbar { width: 6px; height: 6px; } textarea::-webkit-scrollbar-track-piece { background:transparent; -webkit-border-radius: 6px; } textarea::-webkit-scrollbar-thumb:vertical { height: 5px; background-color: #cccccc; } textarea::-webkit-scrollbar-thumb:horizontal { width: 5px; background-color: #cccccc; } <textarea>Текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст</textarea> Here is an example for you
and here is the information
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); } ::-webkit-scrollbar-thumb { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); } Source: https://ru.stackoverflow.com/questions/604123/
All Articles