Is it possible to control two div styles with one button?

Your question seems to be a continuation of this topic:

If you’ve read the replies to that, you’ll know you were told it can’t be done with CSS and you will need JavaScript, so if this is the same issue, you should request this thread be moved to the JS forum.

It has already been explained to you (more than once, I’m sure) that you cannot control behaviour with CSS.

2 Likes