tr {
border-radius:5px;
border:2px solid red;
}
Change one letter, d
, to r
(td
to tr
).
Edit: Sorry, you can't apply border to tr. Try this 'hack' instead, borrowed from here:
table { border-collapse: separate; }
td { border: solid 1px #000; }
tr:first-child td:first-child { border-top-left-radius: 10px; }
tr:first-child td:last-child { border-top-left-radius: 10px; }
tr:last-child td:first-child { border-top-left-radius: 10px; }
tr:last-child td:last-child { border-top-left-radius: 10px; }