.table-wrapper { overflow-x: auto; } table { border: 1px solid #eee; border-collapse: collapse; } td, th { border-bottom: 0; border-top: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; padding: 5px 10px; margin: 0; } th { border-bottom: 1px solid #eee; } tr:nth-child(even) { background-color: #fafafa; } tr:hover, col:hover { background-color: #f3f3f3; } td:hover { background-color: gold; }