cochize1 40 Posted October 26, 2019 Share Posted October 26, 2019 (edited) Is there any easy way to mange the size and opacity/color of the main slider in the web browser using custom css? Edited October 26, 2019 by cochize1 Link to comment Share on other sites More sharing options...
Happy2Play 8273 Posted October 27, 2019 Share Posted October 27, 2019 Something like this /*Scrollbar width*/ html ::-webkit-scrollbar { width: .5em; } /*Scrollbar Opacity*/ html ::-webkit-scrollbar-track-piece { background-color: rgba(0,0,0,.2); } You can try to target the color in the opacity above also, as the color is the html layer that will affect other areas. Link to comment Share on other sites More sharing options...
cochize1 40 Posted October 27, 2019 Author Share Posted October 27, 2019 Thank you, worked perfectly. Not sure if I should start another topic but I have still one small problem: Is there a way to disable "highlight" option so would avoid this: Link to comment Share on other sites More sharing options...
Happy2Play 8273 Posted October 27, 2019 Share Posted October 27, 2019 That would be "::selection". Accidental selection of items on the page. Clicking anywhere should resolve it but I guess you can assign a different background color if you like. If you apply color it affects the selected text color. And background will affect the selected texts background. You can use one or both if you like. ::selection, ::-moz-selection { color: assign a color; background: assign a color; } Link to comment Share on other sites More sharing options...
cochize1 40 Posted October 28, 2019 Author Share Posted October 28, 2019 Does "-moz" means it is for Mozzila only? As I am using chrome and did not notice any change (still blue default selection). Link to comment Share on other sites More sharing options...
Happy2Play 8273 Posted October 28, 2019 Share Posted October 28, 2019 Does "-moz" means it is for Mozzila only? As I am using chrome and did not notice any change (still blue default selection). Yes -moz is specific to FireFox. What color did you apply as I have no issue adding color and background in Chrome when I apply my choice of colors. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now