Box model
Images and captions
Captions are labels that belong with images. They tell people what the image is. Let’s see how you keep captions with their images.
Spacing between elements
Learn:
- What the box model is, and how to use it.
- How to set
marginandpaddingdefaults.
- How CSS overrides work.
- How containership affects layout.
Styling boundaries - the box model
On this page, you’ll learn what the box model is. You’ll learn how to use it to style the boundaries of images and text blocks.