Forums Get help. Give help.
CSS Media Query Issue
-
I have some media queries based on screen size:
I am currently testing on two different screen sizes ( 1920 x 1080 ) and another ( 1600 x 900 ). The first snippet is not triggered if the page I am viewing is opened on the 1600x900 screen. The query that DOES apply is the second snippet for 1680 x 1050px screens
@media screen and (max-device-width:1600px){
html{
background:lightblue url(../img/logo.png) no-repeat 280px 200px;
}
}
@media screen and (max-device-width:1680px){
html{
background:lightblue url(../img/logo.png) no-repeat 270px 200px;
}
}
Any idea why ? -
Sounds like you're not reaching the condition for your larger query. Try using only one query with a min-width of 1601, placing the style for the larger resolution inside of it while the smaller needs no condition met to be displayed.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Categories
- All Discussions15,493
- CSS Combat7,193
- Other Discussions3,820
- JavaScript Jungle2,455
- PHP Problems2,025
Tips
Just some helpful hints to get the most out of the forums.

