CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Almanac
Illustration by Giovanni DiFeterici
CSS Selectors
A
::after
:active
Adjacent sibling
Attribute
B
::before
C
:checked
Child
Class
D
:default
:disabled
Descendant
E
:empty
:enabled
F
::first-letter
::first-line
:first-child
:first-of-type
:focus
G
General sibling
H
:hover
I
:in-range
:invalid
ID
J
K
L
:lang()
:last-child
:last-of-type
:link
M
N
:not(s)
:nth-child
:nth-last-child
:nth-last-of-type
:nth-of-type
O
:only-child
:only-of-type
:optional
:out-of-range
P
::placeholder
Pseudo Class Selector
Pseudo Element
Q
R
:required
:root
S
T
:target
Type
U
Universal
V
:valid
:visited
W
X
Y
Z
CSS Properties
A
align-content
align-items
align-self
animation
appearance
B
backface-visibility
background
border
border-collapse
border-image
border-radius
bottom
box-shadow
box-sizing
C
clear
clip
color
column-count
content
counter-increment
counter-reset
cursor
D
direction
display
E
F
flex
flex-basis
flex-direction
flex-flow
flex-grow
flex-shrink
flex-wrap
float
font
font-size
G
grid
H
hanging-punctuation
Height
hyphens
I
J
justify-content
K
L
left
letter-spacing
line-height
list-style
M
margin
max-height
max-width
min-height
min-width
N
O
opacity
order
orphans
outline
overflow
P
padding
page-break
perspective
perspective-origin
pointer-events
position
Q
quotes
R
resize
right
S
scrollbar
T
tab-size
text-align
text-decoration
text-indent
text-overflow
text-shadow
text-stroke
top
transform
transform-origin
transform-style
transition
U
unicode-bidi
user-select
V
vertical-align
visibility
W
white-space
widows
width
word-break
word-spacing
X
Y
Z
z-index
zoom