Media Queries?
Media Queries?
Out of context: Reply #16
- Started
- Last post
- 25 Responses
- ESKEMA0
Consider this:
.qbn {
color:blue;
background-color: green;
}@media only screen and (min-width: 1200px) {
.qbn {
background-color:yellow;
}
}@media only screen and (max-width: 480px) {
.qbn {
background-color:red;
}
}They all share the same color (blue) but have different backgrounds depending on the window width.
- you don't need to duplicate everything for each query, just what changes.ESKEMA