
Originally Posted by
Shivanand
I am changing the screen resolution.
I see. I misunderstood you then. Well, you could override that effect for such smaller screens by adding the rule in red:
Code:
body {font-family:Arial, Helvetica, sans-serif}
.dataContainer {background:#00ff00;height:200px;padding:20px}
@media only screen and (min-device-width:480px) and (max-device-width:1024px)
{
.dataContainer {background:#ff0000}
}
@media only screen and (min-width:480px) and (max-width:1024px)
{
.dataContainer {background:#00ff00}
}
Mind you, not a lot of desktops use that resolution any more. (I think it was as few as 14% last time I checked.)
Bookmarks