#Media queries
8 messages · Page 1 of 1 (latest)
style tags are scoped by default meaning they will only apply styles to elements directly inside the file, you could try using Global Styling to opt of this scoping
https://docs.astro.build/en/reference/directives-reference/#isglobal
https://docs.astro.build/en/guides/styling/#global-styles
Hey, thanks for the reply. As per my post I did try the global styling already. Everything works fine, apart from media queries:/
Ahh, I got confused because it says "global scoped style", I tested this media query in a <style> tag and it worked for me, what does your full style tag looks like?
My bad, wrong wording:) the screenshot has different media query but it doesn’t work either. Thank you for looking into it
Looks like you missed the screen and part of your query like @media screen and (max-width: 600px)
