MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

sabernhardt

Member since
sabernhardt

Recent Docs Activity

View all activity
Page Date Comment

box-pack


In the example, the child element (p) was given a width to show centering, but the parent div also needs a declared width (specifically larger) to make that clear.