How to make a side menu that expands by pushing the body?

Asked

Viewed 571 times

1

In the style similar to that of this site here: LINK

  • 3

    What’s your difficulty, you’re testing some code ?

  • 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?

  • 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,

  • 1

    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.

  • 1

    Would that be so? https://jsfiddle.net/p2wvyafo/

  • Try to start and emerging a more specific need put here

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.