jquery - How to add 2 jScrollPane to my page and each one has different CSS? -
i have on page 2 divs uses jscrollpane , want each 1 have own track bar, default property exist in css file , applied 2 divs.
i want add specific track bar second div without interacting withe first one.
how can that?
thanks
wrap second scroll pane in element class or id , target css rules tracks nested inside that.
e.g. (assuming using jscrollpane 2):
<div id="wrapper"> <div class="scroll-pane"> [content] </div> </div>
then in css:
#wrapper .jsptrack { background: red; }
this effect track within div id of "wrapper".
hope helps!
Comments
Post a Comment