I made a menu that is only off canvas
when the screen is less than 768px
, otherwise it appears by default on the page This works perfectly. The problem is that if I activate the menu and then resize in the browser the menu will stop in the middle of the page, I do not know how to solve. The link of the hosting is this link I am using the pseudo class :checked
of css
to be able to activate and deactivate the menu, if they have any better solution, I am open to opinions, grateful;)
Media to leave menu off screen:
@media screen and (max-width: 768px) {
.barra {
left: -300px;
position: fixed !important;
}