jQuery UI Slider overlap slidebar

jQuery UI Slider overlap slidebar



I use a slider range (jquery ui) and a side navigation bar (w3 school).



The handler of the slider range overlap the side navigation bar when it extend.



css of the side bar:


/* ~~~~~~~~~~~~~~~~~~~~~~ SIDENAV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.sidenav
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;


.sidenav a
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;


.sidenav a:hover
color: #f1f1f1;


.sidenav .closebtn
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;


@media screen and (max-height: 450px)
.sidenav padding-top: 15px;
.sidenav a font-size: 18px;



No Overlap: When the handler is not in the same plan as the navigation bar
enter image description here



Overlap: When the handler is in the same plan as the navigation bar
enter image description here



What can be the cause of this overlapping?





Could you show your html as well?
– Ray
Sep 2 at 12:36





try increasing 'z-index' of your sidebar.
– Sachin Bhandari
Sep 2 at 13:02





Put the smallest example of working code in place so we can see it in action rather than just images.
– Mark Schultheiss
Sep 2 at 13:44




1 Answer
1



The solution was given in the comment section.



The solution is to raise the z-index of the sidebar.


.sidenav
height: 100%;
width: 0;
position: fixed;
z-index: 10;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;





As the sidebar should always be on top, maybe rise it to a high value to never have this problem.



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế