S
S
SergeyKisliy2014-07-16 17:13:50
css
SergeyKisliy, 2014-07-16 17:13:50

Should @media be set to only screen ?

1) @media (min-width: 480px) and (max-width: 768px) {
}
2) @media only screen and (min-width: 480px) and (max-width: 768px) {
} Which
is correct?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A_Psycho, 2014-07-17
@SergeyKisliy

The first option is specified for all output devices (TV, phones, screens, print version, ...), and in the second you specify "only screen" - only for monitors. In this case, the rules in the body of the media request will be ignored when opened from any other output devices.
Article about media queries

D
Denis Ineshin, 2014-07-16
@IonDen

Better @media handheld, screen and ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question