@import url(~sanitize.css); @import url(~@fortawesome/fontawesome-free/css/all.css); * { box-sizing: border-box; } a { color: inherit; text-decoration: inherit; } body { display: flex; flex-direction: column; align-items: center; min-height: 100vh; } nav, footer { background-color: blue; height: 5vh; width: 100%; color: white; } nav { display: flex; align-items: center; justify-content: space-between; padding: 1em; } nav .fa { font-size: 4vh; } main { display: flex; width: min(max(90vw,1080px), 100%); background-color: beige; flex-grow: 1; } .product-image { max-width: 100%; } footer { display: flex; justify-content: center; align-items: center; }