Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As mentioned at the beginning of this chapter, CSS3 introduces a new concept called “media queries,” which lets you assign styles to a page based on the width and height of the destination browser. So you can create custom styles for mobile phones, tablets, and desktop browsers, and, in turn, customize your site’s presentation so that it looks its best on each type of device. Because media queries are part of the yet-to-be-finished CSS3 standard, not all browsers support them. Fortunately, the browsers you’re most interested in—those for mobile phones and tablets—do, so even though Internet Explorer 8 doesn’t know what a media query is, your good old iPhone or Android ....