#Media queries

8 messages · Page 1 of 1 (latest)

near ruin
#

Hi all, I am trying to implement some global media queries on my project but can't make them to work. I tried testing both global scoped style in Layout.astro file and component scoped style and it doesn't work. If anyone could guide me in the right direction I would be grateful . Thanksastro
EDIT: I am using vanilla CSS.

safe owl
near ruin
#

Hey, thanks for the reply. As per my post I did try the global styling already. Everything works fine, apart from media queries:/

safe owl
#

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?

near ruin
#

My bad, wrong wording:) the screenshot has different media query but it doesn’t work either. Thank you for looking into it

safe owl
near ruin
#

no difference at all

#

ok, it started working when i moved the media queries to index.astro file... 😄