table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } th { background-color: red; border: 1px solid red; } td { border: 1px solid #dddddd; } td, th { text-align: left; padding: 8px; } tr:nth-child(even) { background-color: #dddddd; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter