A
A
amberpow3r2016-01-30 01:58:28
css
amberpow3r, 2016-01-30 01:58:28

Why doesn't media queries work?

Please help me solve my problem.
The bottom line is that when the browser window is resized, media queries are triggered, and if you open the same document on a phone or tablet (with screens corresponding to breakpoints), then nothing happens.
connected like this:

<link rel='stylesheet' media='screen and (max-width: 480px)' href='media_queries.css' />

The request itself looks like this:
@media only screen and (max-width: 480px) {
.....
}

9409f3df2c194cf4aff36780cef53c2b.png8c5f818f01764c3abf821bf132a9523b.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanan Yuzb, 2016-01-30
@amberpow3r

add this line

<meta name="viewport" content="width=device-width, initial-scale=1">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question