5 AnswersNew Answer
What I was trying to say is that there are two sidebars. One on Page1, the other on Page2. They both look the same, that's why I though that you copied from Page1 to Page2. But you are missing that there are two elements with id="mySidebar" in your code.
Kevin ★ Thanks a lot 😄
Kevin ★ Yep , the Sidebar is taken from W3schools.com
I think you copy pasted a section of your code from one place to the other😅 That's not bad, it's good to save typing but remember that you can't have duplicate IDs in your code. There are many duplicated IDs there, change that and also modify the close and open functions at the bottom of the code to reflect those changes. Those functions simply won't work right now. I think it is a bad idea to have separate pages (with many things in common) and show/hide them using CSS. Once your code grows it's going to become slow and a bit hard to maintain. But that's just my opinion.
PoSiTiOn me problem hai