New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do css media queries run in development mode? #11321
Comments
Did you add the meta tag for the viewport in your html file? |
No. Where is the best place to insert it? In helmet? |
Yes it is added in the react-helmet component |
@DanielRuf per build with either in development mode or production build the viewport is defined in |
I figured out my problem. It was because of the spaces after the pixel sizes in the media query. When I wrote 1201px instead 1201 px everything worked like a charm. |
Ah that makes sense, oversaw this. |
@DanielRuf Thank you Daniel. I apparently needed some push to solve it. |
Hi,
I am trying to build a Splash image component using the react-parallax plugin. I am getting the image with a static query and injecting it to parallax component. I am also using a css file for this component which consists of solely media queries for setting the height of the parallax component.
And this is the code in the css file:
The media queries seem not to run and as I have no default height setting, the background image is not displayed at all. The media queries are not running I suppose.
Appreciate advice. Thanks in advance.
The text was updated successfully, but these errors were encountered: