You can do that with margins?

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI15 min

About this video

A CSS tutorial showing how margin: auto can be used in clever places to create layouts and effects with simple HTML. It suits developers and designers who already know basic CSS.

What you’ll learn

  • Apply margin: auto to center and align elements in a layout
  • Build more complex layouts using simple HTML and CSS margins