1
I made a menu that’s just off canvas
when the screen is smaller than 768px
, otherwise it appears by default on the page that works perfectly. The problem is that if I activate the menu and then der resize in the browser the menu will stop in the middle of the page, I do not know how to solve. The hosting link is this http://gioseffi.esy.es/Views/ I’m using the pseudo class :checked
of css
to enable and disable the menu, if you have any better solution, I am open to opinions, grateful ;)
Media for menu to stay off screen:
@media screen and (max-width: 768px) {
.barra {
left: -300px;
position: fixed !important;
}
It worked, thank you very much, man. I’ve been looking at Can I use, that the pseudo class Checked only works on IE 11 p above, recommend me to do this menu with JS? If so, do you have any material I can base myself on? Thank you again.
– Tiago Silveira
I strongly recommend a solution with javascript, taking into account that your project has Bootstrap, it also has Jquery, it makes the implementation of the solution much easier, you can search for "Jquery mobile navigation" or try to implement the solution using the library’s own functions
– Vinicius Colares
you would have some example, or material for me to test?
– Tiago Silveira