Box model

Images and captions

See more about:

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 margin and padding defaults.
  • How CSS overrides work.
  • How containership affects layout.

Styling boundaries - the box model

See more about:

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.


How to...

Lessons

User login

Log in problems? Try here


Dogs