I'm sure most people have come across the Facebook mobile app, as well as many flat UI pattern websites.
I want to create a similar Left menu.
Here is what I've done so far.
- Initially hide the menu (
display:none
) - When the menu button is clicked, show the left menu (
toggle
), and increase the left margin on the main content using JavaScript (style,margin-left:100px;
)
While this method is currently working fine, I am curious if it is considered best practice and if it will be responsive?