How do I write media query only for 1024px width?
Here is my existing css which i have written for 320px width and more
@media (min-width: 320px) {
}
What is the method for only 1024px width?
How do I write media query only for 1024px width?
Here is my existing css which i have written for 320px width and more
@media (min-width: 320px) {
}
What is the method for only 1024px width?
I think if you just want 1024, not 1023 or less, or 1025 or more, you could do
The min/max prefixes are optional. See the w3 entry on it.
I believe you want this:
this way you do not have to override any styles.
otherwise you can do that:
that is different in the way that you will have to override your first media query styles when needeed, in the second one
Write like this:
Check this http://jsfiddle.net/YhsSK/