DEV Community

Play Button Pause Button
Arbaoui Mehdi
Arbaoui Mehdi

Posted on

What does CSS property auto do in margin and how it calculate free space

This what we’ll learn in this short video tutorial:

  • How the CSS Property margin manage the free space for positioning an element
  • How margin can be used to center an element
  • The difference between using a fixed value for the margin property versus auto

Discussion (0)