How can I change the scroll bar in Google Chrome to have different colors?Search bookmarks in Google Chrome...
page split between longtable caption and table
Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?
If I delete my router's history can my ISP still provide it to my parents?
Knowing when to use pictures over words
What kind of hardware implements Fourier transform?
How can I deal with a significant flaw I found in my previous supervisor’s paper?
How to remove trailing forward slash
How do creatures spend Hit Dice after a short rest (if they can do so)?
Issues with new Macs: hardware makes them difficult to use … what options might be available in the future?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Can pricing be copyrighted?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
Planet at the end of Solo: A Star Wars Story
What's a good word to describe a public place that looks like it wouldn't be rough?
What to do if authors don't respond to my serious concerns about their paper?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
En Passant For Beginners
What is the etymology of the kanji 食?
Eww, those bytes are gross
Does my logo design convey the right feelings for a University Student's Council?
Can a person refuse a presidential pardon?
Is there hidden data in this .blend file? Trying to minimize the file size
How did the original light saber work?
Could flying insects re-enter the Earth's atmosphere from space without burning up?
How can I change the scroll bar in Google Chrome to have different colors?
Search bookmarks in Google Chrome address barIs there a Google bar for Chrome?Google Chrome scroll problem — the screen splits into three partsChange default language in the google chrome translator barHow can I regain control over a “stuck” scroll bar?Is it possible to change the scroll bar color in Windows 8?Changing the Google Chrome “link preview” bar?Google Chrome always searches using top barHow to add exceptions to Google Chrome's automatic seaching from the URL bar?How do I remove the Google search bar/logo from a New Tab in Chromium?
I don't like the default scroll bar of Google Chrome:
Is there a way I could change its colors?
google-chrome scrollbar
add a comment |
I don't like the default scroll bar of Google Chrome:
Is there a way I could change its colors?
google-chrome scrollbar
add a comment |
I don't like the default scroll bar of Google Chrome:
Is there a way I could change its colors?
google-chrome scrollbar
I don't like the default scroll bar of Google Chrome:
Is there a way I could change its colors?
google-chrome scrollbar
google-chrome scrollbar
edited Dec 14 '14 at 20:07
slhck
161k47447470
161k47447470
asked Dec 14 '14 at 0:45
NeoNeo
1918
1918
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The good news is, if you use chrome, you can change almost everywhere.
Go to here, the plugin name is what we looking for Styleish:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
Install it and after create a style like this:
And now you can paste following code
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #840000;
border: 1px solid #802113;
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #f90000;
}
::-webkit-scrollbar-thumb:active {
background: #ff2b2b;
}
::-webkit-scrollbar-track {
background: #e80000;
border: 0px none #ffffff;
border-radius: 53px;
}
::-webkit-scrollbar-track:hover {
background: #666666;
}
::-webkit-scrollbar-track:active {
background: #333333;
}
::-webkit-scrollbar-corner {
background: transparent;
}
Of course if you dosen't like red backgound, you can edit backgorund section.
But, if you preferer a visual solution you can generarate your own scrollbar in here:
http://mikethedj4.github.io/Webkit-Scrollbar-Generator/
When you're done with edit, press save button, refresh the page and now you get pretty scrollbar almost everywhere.
Note:
You can add "!important"
atribute for colors, thats means to css:
"Hey, this important so I don't care any other settings for this element"
Syntaxis:
background: #666666 !important;
Of course you can use simple color names, like black or red etc, but I think the color code is much prettier because you get the same color which you're whant.
If you choose this method, you can use this color mixer for example:
http://www.w3schools.com/tags/ref_colormixer.asp?colorbottom=000000&colortop=FFFFFF
And that's it, now you can work in clam, without any noing ugly scrollbar.
Note 2:
Yes it has some problem on some page, but I think the important atribute is can solve it.
add a comment |
I've recently been doing just that, restyling the scroll bar.
Here, take a look at my source code in CSS, it works great, but there is either a "bug" or a feature lack thereof for getting the buttons to change when the scroll bar is at the top, or at the bottom like a normal one.
You can test out the code here.
The source code is below:
/* SCROLL BAR */
/* urls to images
down-arrow-active: https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795
down-arrow-disabled: https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795
down-arrow-enabled: https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795
left-arrow-active: https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795
left-arrow-disabled: https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795
left-arrow-enabled: https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795
right-arrow-active: https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795
right-arrow-disabled: https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795
right-arrow-enabled: https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795
up-arrow-active: https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795
up-arrow-disabled: https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795
up-arrow-enabled: https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795
*/
::-webkit-scrollbar {
width: auto;
height: auto;
}
/* arrow buttons */
::-webkit-scrollbar-button {
width: auto;
height: auto;
background: #0d0d0d;
color: white;
}
::-webkit-scrollbar-button:active {background: #868686;}
::-webkit-scrollbar-button:not(:active):hover {background: #2c2c2c;}
::-webkit-scrollbar-button:disabled:hover {background: #0d0d0d;}
::-webkit-scrollbar-button:horizontal:increment {
background-image: url(https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:active {
background-image: url(https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:disabled {
background-image: url(https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
background-image: url(https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
background-image: url(https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:disabled {
background-image: url(https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
background-image: url(https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:active {
background-image: url(https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:disabled {
background-image: url(https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
background-image: url(https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:active {
background-image: url(https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:disabled {
background-image: url(https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
/* foreground bar */
::-webkit-scrollbar-thumb {background: #3d3d3d;}
::-webkit-scrollbar-thumb:horizontal {
border-top: 2px solid #0d0d0d;
border-bottom: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid #0d0d0d;
border-right: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover {background: #565656;}
/* background bar */
::-webkit-scrollbar-track {background: #0d0d0d;}
/* corner, when there is converged scrollbars */
::-webkit-scrollbar-corner {background: #232323;}
::-webkit-resizer {background: #222;}
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f852298%2fhow-can-i-change-the-scroll-bar-in-google-chrome-to-have-different-colors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The good news is, if you use chrome, you can change almost everywhere.
Go to here, the plugin name is what we looking for Styleish:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
Install it and after create a style like this:
And now you can paste following code
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #840000;
border: 1px solid #802113;
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #f90000;
}
::-webkit-scrollbar-thumb:active {
background: #ff2b2b;
}
::-webkit-scrollbar-track {
background: #e80000;
border: 0px none #ffffff;
border-radius: 53px;
}
::-webkit-scrollbar-track:hover {
background: #666666;
}
::-webkit-scrollbar-track:active {
background: #333333;
}
::-webkit-scrollbar-corner {
background: transparent;
}
Of course if you dosen't like red backgound, you can edit backgorund section.
But, if you preferer a visual solution you can generarate your own scrollbar in here:
http://mikethedj4.github.io/Webkit-Scrollbar-Generator/
When you're done with edit, press save button, refresh the page and now you get pretty scrollbar almost everywhere.
Note:
You can add "!important"
atribute for colors, thats means to css:
"Hey, this important so I don't care any other settings for this element"
Syntaxis:
background: #666666 !important;
Of course you can use simple color names, like black or red etc, but I think the color code is much prettier because you get the same color which you're whant.
If you choose this method, you can use this color mixer for example:
http://www.w3schools.com/tags/ref_colormixer.asp?colorbottom=000000&colortop=FFFFFF
And that's it, now you can work in clam, without any noing ugly scrollbar.
Note 2:
Yes it has some problem on some page, but I think the important atribute is can solve it.
add a comment |
The good news is, if you use chrome, you can change almost everywhere.
Go to here, the plugin name is what we looking for Styleish:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
Install it and after create a style like this:
And now you can paste following code
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #840000;
border: 1px solid #802113;
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #f90000;
}
::-webkit-scrollbar-thumb:active {
background: #ff2b2b;
}
::-webkit-scrollbar-track {
background: #e80000;
border: 0px none #ffffff;
border-radius: 53px;
}
::-webkit-scrollbar-track:hover {
background: #666666;
}
::-webkit-scrollbar-track:active {
background: #333333;
}
::-webkit-scrollbar-corner {
background: transparent;
}
Of course if you dosen't like red backgound, you can edit backgorund section.
But, if you preferer a visual solution you can generarate your own scrollbar in here:
http://mikethedj4.github.io/Webkit-Scrollbar-Generator/
When you're done with edit, press save button, refresh the page and now you get pretty scrollbar almost everywhere.
Note:
You can add "!important"
atribute for colors, thats means to css:
"Hey, this important so I don't care any other settings for this element"
Syntaxis:
background: #666666 !important;
Of course you can use simple color names, like black or red etc, but I think the color code is much prettier because you get the same color which you're whant.
If you choose this method, you can use this color mixer for example:
http://www.w3schools.com/tags/ref_colormixer.asp?colorbottom=000000&colortop=FFFFFF
And that's it, now you can work in clam, without any noing ugly scrollbar.
Note 2:
Yes it has some problem on some page, but I think the important atribute is can solve it.
add a comment |
The good news is, if you use chrome, you can change almost everywhere.
Go to here, the plugin name is what we looking for Styleish:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
Install it and after create a style like this:
And now you can paste following code
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #840000;
border: 1px solid #802113;
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #f90000;
}
::-webkit-scrollbar-thumb:active {
background: #ff2b2b;
}
::-webkit-scrollbar-track {
background: #e80000;
border: 0px none #ffffff;
border-radius: 53px;
}
::-webkit-scrollbar-track:hover {
background: #666666;
}
::-webkit-scrollbar-track:active {
background: #333333;
}
::-webkit-scrollbar-corner {
background: transparent;
}
Of course if you dosen't like red backgound, you can edit backgorund section.
But, if you preferer a visual solution you can generarate your own scrollbar in here:
http://mikethedj4.github.io/Webkit-Scrollbar-Generator/
When you're done with edit, press save button, refresh the page and now you get pretty scrollbar almost everywhere.
Note:
You can add "!important"
atribute for colors, thats means to css:
"Hey, this important so I don't care any other settings for this element"
Syntaxis:
background: #666666 !important;
Of course you can use simple color names, like black or red etc, but I think the color code is much prettier because you get the same color which you're whant.
If you choose this method, you can use this color mixer for example:
http://www.w3schools.com/tags/ref_colormixer.asp?colorbottom=000000&colortop=FFFFFF
And that's it, now you can work in clam, without any noing ugly scrollbar.
Note 2:
Yes it has some problem on some page, but I think the important atribute is can solve it.
The good news is, if you use chrome, you can change almost everywhere.
Go to here, the plugin name is what we looking for Styleish:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
Install it and after create a style like this:
And now you can paste following code
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #840000;
border: 1px solid #802113;
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #f90000;
}
::-webkit-scrollbar-thumb:active {
background: #ff2b2b;
}
::-webkit-scrollbar-track {
background: #e80000;
border: 0px none #ffffff;
border-radius: 53px;
}
::-webkit-scrollbar-track:hover {
background: #666666;
}
::-webkit-scrollbar-track:active {
background: #333333;
}
::-webkit-scrollbar-corner {
background: transparent;
}
Of course if you dosen't like red backgound, you can edit backgorund section.
But, if you preferer a visual solution you can generarate your own scrollbar in here:
http://mikethedj4.github.io/Webkit-Scrollbar-Generator/
When you're done with edit, press save button, refresh the page and now you get pretty scrollbar almost everywhere.
Note:
You can add "!important"
atribute for colors, thats means to css:
"Hey, this important so I don't care any other settings for this element"
Syntaxis:
background: #666666 !important;
Of course you can use simple color names, like black or red etc, but I think the color code is much prettier because you get the same color which you're whant.
If you choose this method, you can use this color mixer for example:
http://www.w3schools.com/tags/ref_colormixer.asp?colorbottom=000000&colortop=FFFFFF
And that's it, now you can work in clam, without any noing ugly scrollbar.
Note 2:
Yes it has some problem on some page, but I think the important atribute is can solve it.
answered Dec 14 '14 at 0:45
NeoNeo
1918
1918
add a comment |
add a comment |
I've recently been doing just that, restyling the scroll bar.
Here, take a look at my source code in CSS, it works great, but there is either a "bug" or a feature lack thereof for getting the buttons to change when the scroll bar is at the top, or at the bottom like a normal one.
You can test out the code here.
The source code is below:
/* SCROLL BAR */
/* urls to images
down-arrow-active: https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795
down-arrow-disabled: https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795
down-arrow-enabled: https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795
left-arrow-active: https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795
left-arrow-disabled: https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795
left-arrow-enabled: https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795
right-arrow-active: https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795
right-arrow-disabled: https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795
right-arrow-enabled: https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795
up-arrow-active: https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795
up-arrow-disabled: https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795
up-arrow-enabled: https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795
*/
::-webkit-scrollbar {
width: auto;
height: auto;
}
/* arrow buttons */
::-webkit-scrollbar-button {
width: auto;
height: auto;
background: #0d0d0d;
color: white;
}
::-webkit-scrollbar-button:active {background: #868686;}
::-webkit-scrollbar-button:not(:active):hover {background: #2c2c2c;}
::-webkit-scrollbar-button:disabled:hover {background: #0d0d0d;}
::-webkit-scrollbar-button:horizontal:increment {
background-image: url(https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:active {
background-image: url(https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:disabled {
background-image: url(https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
background-image: url(https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
background-image: url(https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:disabled {
background-image: url(https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
background-image: url(https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:active {
background-image: url(https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:disabled {
background-image: url(https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
background-image: url(https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:active {
background-image: url(https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:disabled {
background-image: url(https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
/* foreground bar */
::-webkit-scrollbar-thumb {background: #3d3d3d;}
::-webkit-scrollbar-thumb:horizontal {
border-top: 2px solid #0d0d0d;
border-bottom: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid #0d0d0d;
border-right: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover {background: #565656;}
/* background bar */
::-webkit-scrollbar-track {background: #0d0d0d;}
/* corner, when there is converged scrollbars */
::-webkit-scrollbar-corner {background: #232323;}
::-webkit-resizer {background: #222;}
New contributor
add a comment |
I've recently been doing just that, restyling the scroll bar.
Here, take a look at my source code in CSS, it works great, but there is either a "bug" or a feature lack thereof for getting the buttons to change when the scroll bar is at the top, or at the bottom like a normal one.
You can test out the code here.
The source code is below:
/* SCROLL BAR */
/* urls to images
down-arrow-active: https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795
down-arrow-disabled: https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795
down-arrow-enabled: https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795
left-arrow-active: https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795
left-arrow-disabled: https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795
left-arrow-enabled: https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795
right-arrow-active: https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795
right-arrow-disabled: https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795
right-arrow-enabled: https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795
up-arrow-active: https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795
up-arrow-disabled: https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795
up-arrow-enabled: https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795
*/
::-webkit-scrollbar {
width: auto;
height: auto;
}
/* arrow buttons */
::-webkit-scrollbar-button {
width: auto;
height: auto;
background: #0d0d0d;
color: white;
}
::-webkit-scrollbar-button:active {background: #868686;}
::-webkit-scrollbar-button:not(:active):hover {background: #2c2c2c;}
::-webkit-scrollbar-button:disabled:hover {background: #0d0d0d;}
::-webkit-scrollbar-button:horizontal:increment {
background-image: url(https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:active {
background-image: url(https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:disabled {
background-image: url(https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
background-image: url(https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
background-image: url(https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:disabled {
background-image: url(https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
background-image: url(https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:active {
background-image: url(https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:disabled {
background-image: url(https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
background-image: url(https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:active {
background-image: url(https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:disabled {
background-image: url(https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
/* foreground bar */
::-webkit-scrollbar-thumb {background: #3d3d3d;}
::-webkit-scrollbar-thumb:horizontal {
border-top: 2px solid #0d0d0d;
border-bottom: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid #0d0d0d;
border-right: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover {background: #565656;}
/* background bar */
::-webkit-scrollbar-track {background: #0d0d0d;}
/* corner, when there is converged scrollbars */
::-webkit-scrollbar-corner {background: #232323;}
::-webkit-resizer {background: #222;}
New contributor
add a comment |
I've recently been doing just that, restyling the scroll bar.
Here, take a look at my source code in CSS, it works great, but there is either a "bug" or a feature lack thereof for getting the buttons to change when the scroll bar is at the top, or at the bottom like a normal one.
You can test out the code here.
The source code is below:
/* SCROLL BAR */
/* urls to images
down-arrow-active: https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795
down-arrow-disabled: https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795
down-arrow-enabled: https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795
left-arrow-active: https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795
left-arrow-disabled: https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795
left-arrow-enabled: https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795
right-arrow-active: https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795
right-arrow-disabled: https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795
right-arrow-enabled: https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795
up-arrow-active: https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795
up-arrow-disabled: https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795
up-arrow-enabled: https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795
*/
::-webkit-scrollbar {
width: auto;
height: auto;
}
/* arrow buttons */
::-webkit-scrollbar-button {
width: auto;
height: auto;
background: #0d0d0d;
color: white;
}
::-webkit-scrollbar-button:active {background: #868686;}
::-webkit-scrollbar-button:not(:active):hover {background: #2c2c2c;}
::-webkit-scrollbar-button:disabled:hover {background: #0d0d0d;}
::-webkit-scrollbar-button:horizontal:increment {
background-image: url(https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:active {
background-image: url(https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:disabled {
background-image: url(https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
background-image: url(https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
background-image: url(https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:disabled {
background-image: url(https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
background-image: url(https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:active {
background-image: url(https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:disabled {
background-image: url(https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
background-image: url(https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:active {
background-image: url(https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:disabled {
background-image: url(https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
/* foreground bar */
::-webkit-scrollbar-thumb {background: #3d3d3d;}
::-webkit-scrollbar-thumb:horizontal {
border-top: 2px solid #0d0d0d;
border-bottom: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid #0d0d0d;
border-right: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover {background: #565656;}
/* background bar */
::-webkit-scrollbar-track {background: #0d0d0d;}
/* corner, when there is converged scrollbars */
::-webkit-scrollbar-corner {background: #232323;}
::-webkit-resizer {background: #222;}
New contributor
I've recently been doing just that, restyling the scroll bar.
Here, take a look at my source code in CSS, it works great, but there is either a "bug" or a feature lack thereof for getting the buttons to change when the scroll bar is at the top, or at the bottom like a normal one.
You can test out the code here.
The source code is below:
/* SCROLL BAR */
/* urls to images
down-arrow-active: https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795
down-arrow-disabled: https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795
down-arrow-enabled: https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795
left-arrow-active: https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795
left-arrow-disabled: https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795
left-arrow-enabled: https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795
right-arrow-active: https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795
right-arrow-disabled: https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795
right-arrow-enabled: https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795
up-arrow-active: https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795
up-arrow-disabled: https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795
up-arrow-enabled: https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795
*/
::-webkit-scrollbar {
width: auto;
height: auto;
}
/* arrow buttons */
::-webkit-scrollbar-button {
width: auto;
height: auto;
background: #0d0d0d;
color: white;
}
::-webkit-scrollbar-button:active {background: #868686;}
::-webkit-scrollbar-button:not(:active):hover {background: #2c2c2c;}
::-webkit-scrollbar-button:disabled:hover {background: #0d0d0d;}
::-webkit-scrollbar-button:horizontal:increment {
background-image: url(https://lh3.googleusercontent.com/xYvnE07JnzlZ6L8TxtyzubVJQS8_zEWR8nF_yTqpoAduG4HOX--u_pgQZCj_9jnwx08Jnb6IACddaIvNN9jK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:active {
background-image: url(https://lh5.googleusercontent.com/Sz2_Mr7s0AiTLmVMr18X7c24Uq2K3oc3YA4Ps_Ccue9x6u7nKXV65a3UD9Y9A3EU2JH4h1GiTzfPl7jAZXMe=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment:disabled {
background-image: url(https://lh5.googleusercontent.com/w0_GcgTOCgH0ikENrICfl1wR0bUo33J1404Rt8qImscd0Q9sea247L45K0PEaTgFdTX3TjDwTCqzJUj2Mo0f=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
background-image: url(https://lh5.googleusercontent.com/dVUWlUcYhJw_yL3nTZwDVnomfFIBRzoFbcvkLu2BXB64rgBduwOje9qAizOJXEvjp1K9VAH4yQIikk0Fu7KO=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
background-image: url(https://lh5.googleusercontent.com/gvMUv1cwxdafht01FyQ1HQ0EomxUUuCB46x-nErzUvV_F3y5P78c6jlm0C4KJnRq_jMOI_mCg3G2xV4uA5WN=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement:disabled {
background-image: url(https://lh6.googleusercontent.com/_Nn_PebnxeufXwcK_S50cqsXASecPn9ypOEnQhbmZ5yKmLVQjek5fEgO9GG2QfUQd7I5m6GS8alVp9rPkdQr=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
background-image: url(https://lh6.googleusercontent.com/Am_fG5S2BCCAOIR0IAI7KGMZbM7Cg0UampVDFeK0fL9scrEkrtca11usX84_q_AfxfRDWMR_kMAZXBgA3ZJK=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:active {
background-image: url(https://lh5.googleusercontent.com/9pXy5VTkkKYj89Q_HWfZxwsGbXcJTHevER3uxyWkA3KCjQP-8i4BT9k9YkRGFhDWLc1S0LSWqaZumfOMp2CS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:increment:disabled {
background-image: url(https://lh6.googleusercontent.com/vONWM6x8jfX0qncJHbD9KyPuzt176mlKqwoWpZWYXDuV0Bv_eN25pcutIXJ_DppyA8iu_CfJE4ZFasA4rcs4=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement {
background-image: url(https://lh6.googleusercontent.com/5rGVA0knI8YU_k16G8XDiImvbvt5h0etE8PX5bLJ0jJtw2qZROFkDxzZKQAt4X94JL9m9Yb68MNmiHvUA19K=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:active {
background-image: url(https://lh4.googleusercontent.com/VhaS6es4J-WjKe0fehTpsHGK6ARyTOfDV67c1doRJgdkaeviBHkQfvD1AilXtQf8q2jjj0xfOrMmkQauONfJ=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
::-webkit-scrollbar-button:vertical:decrement:disabled {
background-image: url(https://lh3.googleusercontent.com/8hN5Gie7BW3tWlIFBQ2RE5zyiiEaBdsGDjtcFs0MsY-Pl8iGuqUjsUM_gcwB0C95PI2apAAdoWODXXjitwSS=w1600-h795);
background-repeat: no-repeat;
background-position: center;
}
/* foreground bar */
::-webkit-scrollbar-thumb {background: #3d3d3d;}
::-webkit-scrollbar-thumb:horizontal {
border-top: 2px solid #0d0d0d;
border-bottom: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:vertical {
border-left: 2px solid #0d0d0d;
border-right: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover {background: #565656;}
/* background bar */
::-webkit-scrollbar-track {background: #0d0d0d;}
/* corner, when there is converged scrollbars */
::-webkit-scrollbar-corner {background: #232323;}
::-webkit-resizer {background: #222;}
New contributor
New contributor
answered 6 mins ago
AlienDrewAlienDrew
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f852298%2fhow-can-i-change-the-scroll-bar-in-google-chrome-to-have-different-colors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown