Content resize when left side bar toggled
I’m trying to make the content resize when I toggle my left side bar just like it’s done in Google Contact
Here is my code: https://codepen.io/revatto/pen/ExPpeoE
With the code above, my content get pushed with:
margin-left: 250px;
in your css:
.container { width: 100%; height: 100vh; position: fixed; }
instead of relative
Set the .container
-position to fixed
instead of relative
:
Before:
.container { ... position: relative; }
After:
.container { ... position: fixed; }