body{ background-color: #586e75; } h1, #table { display: flex; justify-content: center; } #table { background-color: green; } tr { max-height: 250px; background-color: green; } img { max-height: inherit; max-width: inherit; } .image-div { max-height: inherit; width: 15%; } .namedesc-div { width: 30%; } td { background-color: red; border: 2px solid; } .name { font-weight: bold; }