Works with link to ID divs

Hi,

I have links on the side that each of them connect to another div (why, what, how etc…)
when i click on ‘what’ also i see ‘how’ is clicked. i understand it because ‘how’ id is completely visible,
but how i can control it anyway?