adds a gap between border and other boxes
img { margin: 25px; }
margin box
Slide 9
Slide 9 text
content flow
Slide 10
Slide 10 text
1. Left to right
2. Top to bottom
Slide 11
Slide 11 text
Floats: easy to abuse, better to avoid
Useful mostly for images in a blog post
Absolute/fixed positioning:
Choose the top, right, bottom, or left
distance from a container or viewport.
Take it out of the flow
Slide 12
Slide 12 text
positioning
X/Y axis: left to right, top to bottom
Reference: static, fixed, relative, absolute
Slide 13
Slide 13 text
weirdness
Negative margin
Overlapping z-index
Cut off overflow