.linkBox{ width: 100%; } .alignMiddle { align-items: center; } body { margin: 0; padding: 0; display: flex; justify-content: center; background-color: #008080; } .mainContainer { display: flex; max-width: 95%; width: 750px; flex-direction: column; align-items: center; } .imageBox { margin-top: 2rem; margin-bottom: 2rem; .window-body{ display: flex; justify-content: center; } img { height: 8rem; width: 8rem; object-fit: cover; } }