Greetings Esteemed Developers I am a newcomer to web development and I have been practicing. However, I encounter difficulties with my CSS at times. Today, I have a query for you all; I am trying to create a fixed sidebar but I am facing challenges. Despite extensive research and attempts, I have not been successful in achieving the desired outcome. Hence, I am reaching out here for assistance. Below is my code snippet:
$(document).ready(function () {
$('#mySidebtn').click(()=>{
$('.sidebg').toggleClass('hideSidebar')
$('.sidebar').toggleClass('hideSidebar')
})
})
Your CSS code snippet here
Your HTML code snippet here
Summary: My objective is to create a fixed sidebar that remains in place when users scroll through the content. Any insights or guidance on how to achieve this will be greatly appreciated.