Answer the question
In order to leave comments, you need to log in
How to make it so that when you click on the "MENU" button, the burger opens (using CSS only) and automatically adds an indent for another block?
How to make it so that when you click on the "MENU" button, the burger opens (the condition that the burger is only using CSS) and explicitly adds an indent for another block?
(at screen width 480px)
https://jsfiddle.net/Yurii931/u9qndjw3/
Answer the question
In order to leave comments, you need to log in
https://jsfiddle.net does not work in Russia. Purely practical: you wrap the menu in a label and add a hidden checkbox in front of the menu:
.burger-menu {display: none;}
.burger-checkbox:checked + .burger-menu {display: block;}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question