CSS/Mediaqueries/width

From Web Education Community Group
< CSS‎ | Mediaqueries
Revision as of 19:30, 28 September 2012 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

width

The ‘width’ media feature describes the width of the targeted display area of the output device.

Description table

Values <length>
Applies to visual and tactile media types
Accepts min/max prefixes Yes

Example

Example A

<link rel="stylesheet" type="text/css" href="css/mobile.css">
<link rel="stylesheet" type="text/css" href="css/tablet.css" media="only screen and (min-width:768px)">
<link rel="stylesheet" type="text/css" href="css/pc.css" media="only screen and (min-width:960px)">