how to limit the width of a div and center horizontally code example Example: justify center wont wotk with max-width css margin-left: auto; margin-right: auto;