Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Web Browser

Code Editor

The margin property creates space on all sides of a page element. It's also possible to set separate margin spacings on each side of an element.

Additional margin properties:

  1. margin-top: Sets the top margin.

  2. margin-bottom: Sets the bottom margin.

  3. margin-left: Sets the left margin.

  4. margin-right: Sets the right margin.

Note: Below we will change margin properties for a div that encloses HTML figure elements. Figures are used to organize visuals, such as photos and diagrams.

Report a Bug
If you see a bug or any other issue with this page, please report it here.