- This topic is empty.
-
AuthorPosts
-
July 12, 2013 at 9:53 am #46344
royalsam
ParticipantBelow these are for the all other browsers expect mozilla. which tags i can use for mozilla??
::-webkit-scrollbar {
width: 12px;
}::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px #fff);
background:#000;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px #fff;
background:#CCC;
}*July 12, 2013 at 10:18 am #142487Paulie_D
MemberJust change use -moz instead of -webkit as we have showed you in the previous posts.
Just note that they may not be **exactly** the same
July 12, 2013 at 10:24 am #142489Eric Gregoire
ParticipantNot sure if shadows and stuff are supported by Firefox scroll bars; I could be wrong.
If you’re looking for cross-browser consistency in appearance, you might want to consider a fallback using JS for any browser engine that doesn’t support what you’re doing. jScrollPane is one option :: http://jscrollpane.kelvinluck.com/
July 12, 2013 at 10:26 am #142490Paulie_D
MemberAlso note that, I think, you have to state the -moz versions **separately** from the -webkit ones in your CSS.
I’m note sure you can comma separate them.
July 13, 2013 at 7:12 am #142667royalsam
ParticipantI Have Done this for mozilla Browser but its not working..Get Me the solution Sir..
::-moz-scrollbar {
width: 12px;
}
::-moz-scrollbar-track {
-moz-box-shadow: inset 0 0 6px #fff);
background:#000;
}
::-moz-scrollbar-thumb {
border-radius: 10px;
-moz-box-shadow: inset 0 0 6px #fff;
background:#7A252B;
}*July 13, 2013 at 7:32 am #142670Paulie_D
MemberDo you have a link you could share or perhaps a Codepen?
May 17, 2016 at 5:33 am #241781ratneshn
Participanthere is the link below I tried in code pen its not working
May 17, 2016 at 6:21 am #241782Paulie_D
MemberSeems Mozilla don’t support custom scrollbars as yet.
May 17, 2016 at 6:26 am #241783ratneshn
Participantohh do we have any other solution for this.
May 17, 2016 at 6:27 am #241784Paulie_D
MemberNope….although there may be javascript alternatives.
February 18, 2018 at 4:21 am #267213AmerllicA
ParticipantThere is not any CSS way to do this. for cross-browser user some JS tricks instead.
July 23, 2019 at 8:19 am #293223fabioyehudi
ParticipantI made a registration here, just to answer this topic: /* Only Chrome */ .container::-webkit-scrollbar {width: 17px;} .container::-webkit-scrollbar-thumb {background-color: green; background-clip: padding-box; border: 1px solid red;} .container::-webkit-scrollbar-track {background-color: red; } ::-webkit-scrollbar-button {background-color: red;} /* Only IE */ .container {scrollbar-face-color: green; scrollbar-shadow-color: red; scrollbar-highlight-color: red;} /* Only FireFox */ .container {scrollbar-color: green red;} /* View Scrollbar */ .container {overflow-y: scroll;overflow-x: hidden;}
...I hope this helps. See you later!July 26, 2019 at 2:34 am #293417cssblogger
ParticipantDid you try another browser?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.