Hello
This is my first responsive website
I am using a simple grid style
It works fine on desktop
But I have been trying for days to make it change to a vertical layout for mobile
Any suggestions please?
@media screen and (min-width: 500px){
.container{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 2fr 2fr 1.5fr 1.5fr;
grid-template-areas:
"navbar"
"content"
"left"
"right"
"article"
"footer";
}
}
I have this in my html
<meta name="viewport" content="width=device-width, initial-scale=1.0">
I have tried
@media screen and (max-width: 500px){
and it still does not work
Thanks, any help or suggestions would be greatefully recieved