@media and EM

My media queries seems to be acting up when using it for mobile. I will attach the video if possible.
5 Replies
M. Rashaad
M. RashaadOP11mo ago
When i add the code for the mobile @media it messes up the normal desktop size and tablet sizes, also it does not adjust the size of the mobile. I watched some of kevins vids and he was doing this, i just used max width instead as I prefer it. Does anyone know why this happens?
missymae
missymae11mo ago
Your 25em root assignments are not nested inside the media query.
M. Rashaad
M. RashaadOP11mo ago
what do you mean Aah shit
missymae
missymae11mo ago
You are overriding root styles because they are outside the media query curly braces
M. Rashaad
M. RashaadOP11mo ago
Silly mistake, thanks!

Did you find this page helpful?