Beruflich Dokumente
Kultur Dokumente
Alternate Styles
Can offer different styles to your page Best used for a print version of your website Can be added to a specific style sheet:
Nine possible output types: all, aural, braille, handheld, print, projection, screen, tty, and tv Most common are screen and print
Media Queries
New in CSS3, Media queries enhance the media type methods Features you can include in media queries:
width height device-width device-height orientation aspect-ratio device-aspect-ratio color color-index monochrome resolution scan grid Most common are: min-width and max-width media queries can be used to load an alternate style sheet or offer alternate styles within an existing style sheet link to external style sheet:
<link rel="stylesheet" media = "logic type and (feature: value)" href="stylesheet.css" />
Query within a style sheet: @media logic type and (feature: value) {}
Type
Only - screens out older browsers from reading the rest of the query Not - negates the result: not screen means everything except screen
Its the media type screen and print are the most common Feature: value must be enclosed by parentheses and preceded by the word, and feature is one of the predefined media features multiple features and values can be combined with and
Examples
http://www.erikford.me http://www.theonion.com http://www.philiphousenyc.com http://www.starbucks.com http://www.oxideinteractive.com.au