0

I am trying to use media query for the mobile part of my site, how should I go about it?

I used @media screen and (max-width:320px){} with the div inside the brackets but it didn't work quite right. I am using live server with visual studio code and it looks good on that but not on the actual uploaded site.

eglease
  • 2,445
  • 11
  • 18
  • 28
  • It's not possible to give you a proper answer without a minimal reproducible example and a clear desired and actual result, but maybe you are just missing the [viewport meta tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag)? – JSON Derulo Aug 29 '23 at 16:53
  • https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries reading list is probably best we can do. – Mark Schultheiss Aug 29 '23 at 16:54
  • [Media Queries: How to target desktop, tablet, and mobile?](https://stackoverflow.com/questions/6370690/media-queries-how-to-target-desktop-tablet-and-mobile) - StackOverflow Answers – rozsazoltan Aug 29 '23 at 16:55
  • so my site looks good on Firefox but not on google chrome, so it is something to do with the browser. any idea how to target google chrome? – zach streeter Aug 31 '23 at 15:09

0 Answers0