Jump to content

Media Query Not Working On Desktop


BEL
 Share

Recommended Posts

Hello!

I have a media query in my CSS that is not effecting my site on desktop, only mobile. However, I would like the layout to shift to mobile if someone were to make their screen mobile sized for example. 

HTML: 

    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
 

CSS:

@media only screen and (min-device-width : 320px) and (max-width : 480px) 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...