Abstract
Media queries are simple conditions that test one or more of a device’s features, allowing you to tailor style rules to match the device’s capabilities. This makes it possible to deliver the same HTML to smartphones, tablets, and desktop computers, but with different styles optimized for the appropriate screen size and resolution. You specify the conditions at the same time as the media type (see “Specifying the Media Type” in the preceding chapter).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 David Powers
About this chapter
Cite this chapter
Powers, D. (2012). Targeting Styles with Media Queries. In: Beginning CSS3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4474-5_17
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4474-5_17
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4473-8
Online ISBN: 978-1-4302-4474-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books