9951 explained code solutions for 126 technologies


cssHow to add borders to a table


table, tr, td{
    border: 1px solid black;
    border-collapse: collapse;
}ctrl + c
table

your table element

tr

your row element

td

your cell element

border

your border property

1px

border thickness

solid

border fill style

black

border color

border-collapse: collapse

collapses 2 touching borders into a single one