.table-container { table { position: relative; width: 100%; border-collapse: collapse; border-spacing: 0; empty-cells: show; border: .5px solid #e9e9e9; overflow: scroll; } table th { background: #f7f7f7; color: #5c6b77; font-weight: 600; white-space: nowrap; } table td, table th { border: .5px solid #e9e9e9; text-align: left; @media screen and (max-width: 1920px) and (min-width: 550px){ padding: 4px; } @media screen and (max-width: 550px) and (min-width: 200px){ font-size: 16px; padding: 8px; } } tbody { height: 50px; overflow: scroll; } }