T
T
talaxasi2019-06-04 22:19:41
css
talaxasi, 2019-06-04 22:19:41

Media query does not overwrite previously set style?

5cf6c24e21224045234085.png
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

2 answer(s)
�
ⓒⓢⓢ, 2019-06-04
@talaxasi

media queries lack parent selectors
against media rule:
In simple words: the more selectors used in the selection, the higher the priority

O
Olga Veter, 2019-06-05
@vetero4eg

Read about the specificity of selectors

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question