Is it possible to use 2 @media screen? [closed]

-1

I have a problem, I use Media Queries: @media screen and it is set to max-widht:375px .  I want to put a @media screen for max-widht:1024

What is it like?

    
asked by anonymous 11.07.2018 / 16:48

1 answer

1

Yes. Has as You can declare one and the other this way:

@media screen and (max-width:1024px){
    .tela{ 
         width: 400px;
     }
}
@media screen and (max-width:375px){
    .tela{ 
         width: 250px;
     }
}

If it is only for one element, you can also use JQuery to do this check. If you would like to be informed, please follow the link

    
11.07.2018 / 17:00