body { margin: 0; padding: 0; } .main-container { padding: 6px; display: flex; align-content: center; flex-direction: column; height: 100%; width: 100%; box-sizing: border-box; } .table-container { padding: 6px; place-self: center; border: 2px solid #000000; width: 50%; height: 50%; box-sizing: border-box; } .background { background-color: #808080; width: 100vw; height: 100vh; max-height: 100vh; max-width: 100vw; box-sizing: border-box; }