CSS
Table of Contents
Selectors
[attr="value"] /* = exact */
[class~="box"] /* ~= has word */
[class|="icon"] /* |= exact, or prefix (eg, value-) */
[href$=".doc"] /* $= ends in */
[class*="-is-"] /* *= contains */
h3 + p /* + adjacent sibling */
article ~ footer /* ~ far sibling */
.container > .box /* > direct child */
:target (h2#foo:target)
:disabled
:nth-child
:nth-child(3n)
:nth-child(3n+2)
:nth-child(-n+4)
:nth-last-child(...)
:first-of-type
:last-of-type
:nth-of-type
:only-of-type - only child of its parent thats like that
:only-childClearfix
Font
Font Antialiasing / Smoothing
Background
Custom Selectbox
CSS Selection
Placeholder Styling
Truncate String with Ellipsis
Default list styling
Use :not() to Apply/Unapply Borders on Navigation
:not() to Apply/Unapply Borders on NavigationIE Browser Specific Conditions
Item
Example
Comment
Last updated