body { background-color: #230b36; font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; display: flex; justify-content: center; } .personInfo, .smartphoneInfo, .laptopInfo { font-size: 16px; width: 640px; text-align: left; border-collapse: collapse; background: #252f48; margin: 10px; } .personInfo, .smartphoneInfo, .laptopInfo, th { color: #edb749; border-bottom: 1px solid #37b5a5; padding: 12px 17px; } .personInfo, .smartphoneInfo, .laptopInfo, td { color: #cad4d6; border-bottom: 1px solid #37b5a5; border-right: 1px solid #37b5a5; padding: 7px 17px; } .personInfo, .smartphoneInfo, .laptopInfo, tr:last-child td { border-bottom: none; } .personInfo, .smartphoneInfo, .laptopInfo, td:last-child { border-right: none; } .personInfo, .smartphoneInfo, .laptopInfo, tr:hover td { text-decoration: underline; }