Answer the question
In order to leave comments, you need to log in
How does @media work?
What is the difference between this declaration:
@media (max-width: 768px) {
.content {
width: 500px;
}
}
@media screen and (max-width: 768px) {
.content {
width: 500px;
}
}
Answer the question
In order to leave comments, you need to log in
An unspecified type means all :
@media (max-width: 768px) {...}
@media all and (max-width: 768px) {...}
The second is only for monitor screens. Will not apply to TVs, projectors, printing, smartphones (ios and android 100% don't care about handled).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question