Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Css Tags For Mozilla Browser to style scrollbar

  • This topic is empty.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #46344
    royalsam
    Participant

    Below 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;
    }*

    #142487
    Paulie_D
    Member

    Just 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

    https://css-tricks.com/almanac/properties/a/appearance/

    #142489
    Eric Gregoire
    Participant

    Not 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/

    #142490
    Paulie_D
    Member

    Also 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.

    #142667
    royalsam
    Participant

    @Paulie_D

    I 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;
    }*

    #142670
    Paulie_D
    Member

    Do you have a link you could share or perhaps a Codepen?

    #241781
    ratneshn
    Participant

    @paulie_D

    here is the link below I tried in code pen its not working

    http://codepen.io/ratneshn/pen/Mydvdx

    #241782
    Paulie_D
    Member

    Seems Mozilla don’t support custom scrollbars as yet.

    #241783
    ratneshn
    Participant

    ohh do we have any other solution for this.

    #241784
    Paulie_D
    Member

    Nope….although there may be javascript alternatives.

    #267213
    AmerllicA
    Participant

    There is not any CSS way to do this. for cross-browser user some JS tricks instead.

    #293223
    fabioyehudi
    Participant
    I 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!
    #293417
    cssblogger
    Participant

    Did you try another browser?

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘CSS’ is closed to new topics and replies.