.table-contents { width: 100% !important; overflow-x: hidden; margin-top: -20px; .datatables { display: flex; div.datatable1 { width: 30%; table:nth-child(1) { thead:nth-child(1) { th { padding: 1rem !important; text-align: center; } tr { white-space: nowrap; text-align: center; background: #e6e6e6; td { padding: 0.7rem !important; } } } tbody { white-space: nowrap; } } } div.datatable2 { width: 70%; overflow-x: scroll; table { thead { th { tr:nth-child(1) { display: inline-table !important; white-space: nowrap; text-align: center; background: #e6e6e6; td { padding: 0.7rem !important; } } tr:nth-child(2) { display: inline-table !important; } } } tbody { white-space: nowrap; tr { td { tr { width: 100%; display: inline-table; } } } } } } } }
Mais de dois fornecedores:
Dois fornecedores:
Como faço para mudar estes valores, automáticos ?
div.datatable1 { width: 30%;
div.datatable2 { width: 70%;