V
V
Vladislav Shcherbakov2016-07-23 18:42:13
css
Vladislav Shcherbakov, 2016-07-23 18:42:13

Why doesn't @media queries work in Safari?

The bottom line is, Safari for some reason does not accept media requests, for example:

.box {
width: 50%;
}
@media screen and (min-width: 640px), {
.box {
width: 25%;
}
}

Everything works well in Chrome and other browsers. Tested on two Macs in Safari and Chrome.
What can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-07-23
@Formalism

media screen and (min-width: 640px), - why is there a comma at the end?

V
Vladislav Shcherbakov, 2016-07-23
@Formalism

Thanks Sergey , this solved the problem. I don't even know how the comma appeared there...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question