The body is the element where goes the content that will be displayed, there is no "other element" that is next to it to "push" the body. What is usually done is to use, inside the body, a lateral div that can be hidden, the rest of the body in another one aligned to the side. When the div with mine is displayed, it will naturally shift the other div to the right, just like this.
What’s your difficulty, you’re testing some code ?
– MagicHat
It is that technically in the html structure the menu would be inside the body. So how would you push the body if it is contained inside the body?
– Seu Madruga
I will try to do it. I just wanted to know if there are other ways. I thought of a javascript code here and I will put in practice,
– Seu Madruga
The body is the element where goes the content that will be displayed, there is no "other element" that is next to it to "push" the body. What is usually done is to use, inside the body, a lateral div that can be hidden, the rest of the body in another one aligned to the side. When the div with mine is displayed, it will naturally shift the other div to the right, just like this.
– Ricardo Pontual
Would that be so? https://jsfiddle.net/p2wvyafo/
– Lennon S. Bueno
Try to start and emerging a more specific need put here
– Math