HTML5 and CSS3, Second Edition

(singke) #1
:first-of-type [p:first-of-type{color:blue;}]
Finds the first element of the given type. [C2, F3.5, S3, IE9, O9.5, iOS3,
A2]

:last-of-type [p:last-of-type{color:blue;}]
Finds the last element of the given type. [C2, F3.5, S3, IE9, O9.5, iOS3,
A2]

Column support [#content{column-count:2; column-gap:20px;column-rule:1pxsolid#ddccb5;
}] Divides a content area into multiple columns. [C2, F3.5, S3, O11.1,
iOS3, A2]

:after [span.weight:after{ content:"lbs"; color: #bbb;}]
Used with content to insert content after the specified element. [C2, F3.5,
S3, IE8, O9.5, iOS3, A2]

Media queries [media="onlyall and (max-width:480)"]
Apply styles based on device settings. [C3, F3.5, S4, IE9, O10.1, iOS3, A2]

Chapter 4. Styling Content and Interfaces • 68


Download from Wow! eBook <www.wowebook.com> report erratum • discuss

Free download pdf