Answer the question
In order to leave comments, you need to log in
CSS3: help with @media screen and
Help me figure out all these CSS3 chips. In particular, with priorities and what affects what.
So, if I filed a style.css file like this:
just_properties
@media screen and (min-width: 300px) {
properties_300
}
@media screen and (min-width: 800px) {
properties_800
}
@media print {
properties_print
}
Answer the question
In order to leave comments, you need to log in
Specify like this:
@media screen and (min-width: 320px) and (max-width:480px) {
}
You are just overriding the values. Tobish, any value assignment overwrites the previous one (and in general, all properties have a default value). Tobish, if you have different selectors in different media sections, then the last applied value will be for this property. Everything is simple here.
But more fun with selector priorities.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question