I'm trying to define css for smart phone, and everything else in my CSS can be as-is.
Css:
.content { background: orange; padding: 30px; }
#mobile { display:none; }
@media screen and (max-device-width: 480px){
#mobile { display: block; }
#desktop { display: none; }
}
Html:
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="mobile">this is mobile</div>
<div id="desktop">this is desktop</div>
</body>
</html>
Live demo: http://jsfiddle.net/L5zDQ/
If you make the browser window shrink w/ the demo above, "this is mobile" never shows up. What am I missing?