R
R
raury2021-06-19 00:33:49
css
raury, 2021-06-19 00:33:49

Why doesn't the media query work if I set a span?

Instead of this:

@media screen and (min-width: 1000px){
    div { width: 1000px }
}

I'm trying this:
@media screen and (width >= 1000px){
    div { width: 1000px }
}

If in the first case everything is OK, then the second does not work. Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2021-06-19
@raury

Because in the 2nd case - this is not a correct entry. You can't write more/less.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question