img#aaron { width: 128px; height: 128px; } body { max-width: 800px; padding: 20px; } h1 { font-weight: normal; } header { text-align: center; } footer { margin-left: auto; margin-right: auto; text-align: center; } .img-grid { display: flex; flex-wrap: wrap; } .img-grid a { display: inline-block; height: 160px; margin-right: 40px; margin-bottom: 10px; width: 160px; } .img-grid img { display: block; margin-left: auto; margin-right: auto; max-width: 160px; max-height: 160px; } div.nav { display: flex; justify-content: space-between; width: 100%; } @media(min-width:600px) { header { text-align: left; } body { margin: 0 auto; } }