B4Coder
0%
LessonAbout 6 min

Chapter 4 · Lesson 4 of 5

04. Centre a box with margin: auto

Keep a page's text from stretching too wide with max-width, and centre it with margin: 0 auto: a pattern on almost every website.

Opening the lesson…