Bootstrap 4 Demo
Bootstrap 4 Code Output

The demo of margin classes

mx-sm-3 my-sm-5

mx-sm-2 my-sm-4

mx-sm-4 my-sm-2

mx-sm-3 my-sm-1