V
V
Victor Victor2014-01-17 15:03:43
css
Victor Victor, 2014-01-17 15:03:43

How to handle media queries in Chrome?

There is a media query:

body {
    font: 400 16px/18px sans-serif;
}
@media (min-width: 20em) and (max-width: 48em) {
    ...
}

When narrowing the browser window, the media query fires at 816px instead of the expected 768px (816 = 768 + 48).
I tried different numbers, the result is always the same: min-width: Xem fires at X * 16 + X
Has anyone come across this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhey Egorov, 2014-01-17
@toptalo

The fact is that in the webkit, the side scrollbar is included in the width of the browser window, before the difference was 17px.
stackoverflow.com/questions/8146874/issue-with-css...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question