Answer the question
In order to leave comments, you need to log in
Media queries not working when zooming out?
@media (max-width: 320px) {
}
@media (max-width: 480px) {
}
@media (max-width: 768px) {
}
@media (max-width: 992px) {
}
@media (max-width: 1200px) {
.top-mnu
.a
font-size: 15px;
.top-phone
.li
.a
font-size: 20px;
}
Answer the question
In order to leave comments, you need to log in
Maybe a syntax problem?
If curly braces are not used when working with a selector {}
, then they should not be used with media queries either?
Try like this:
@media (max-width: 1200px)
.top-mnu
.a
font-size: 15px;
.top-phone
.li
.a
font-size: 20px;
so your last one @media
will act on all screens smaller than 1200px wide and will interrupt all previous ones you wrote @media
. Either change their order, from larger to smaller, or rewrite @media
under min-width
Well, you were also correctly written about brackets. If you use the syntax without brackets, they should not be here either
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question