J
J
justifycontent2020-07-03 03:29:21
css
justifycontent, 2020-07-03 03:29:21

Why are media queries not working?

.descriptions__content {
        display: flex;
        justify-content: space-around;
        
        @media (max-width: 1424px) {
            .descriptions__content {
                flex-direction: column;
        }

        }
    }


Isn't it possible to set media queries like this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2020-07-03
@justifycontent

If the page width is 0 - 1424px then the rules will be applied. Otherwise no. Your code will become

.descriptions__content {
  display: flex;
  justify-content: space-around;
}
@media (max-width: 1424px) {
  .descriptions__content .descriptions__content {
    flex-direction: column;
  }
}

If the properties don't apply, then the rules don't match the html markup.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question