I know it should be simple, but I'm stuck here in this, I have a div with ID called Login and I have to leave it as fixed when the navigation is made of computers, so in the mobile version this div will have to stay as relative, can someone exemplify how to do this?
Here's my CSS:
@media only screen and (max-width: 900px) {
.informacoes, .footer-info {
display: none;
}
.login {
position: relative;
margin-top: 25%;
}
}
.login {
position: fixed;
margin-top: 7%;
z-index: 9;
background: rgba(252, 252, 252, 0.80);
padding: 30px 30px 90px;
-webkit-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
-moz-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
transition: left 0.5s linear;
}