Answer the question
In order to leave comments, you need to log in
Media query does not overwrite previously set style?
Can you please tell me what could be the next problem?
Media queries do not overwrite the styles of elements from a specific container. In the debugger, the media query styles are lower than the default ones and are crossed out, hence not applied. Other containers do not have this problem.
I use SASS for layout, for the test I transferred the problematic piece of code to a clean css file and it all worked.
Answer the question
In order to leave comments, you need to log in
media queries lack parent selectors
against media rule:
In simple words: the more selectors used in the selection, the higher the priority
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question