How do you add Borders in Tables? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How do you add Borders in Tables?

I am trying to make a table in HTML/CSS and i can get everything done exept the borders of the individual cells. What do i have to enter, in order to have the program display the table with a grid-like border between each cell?

22nd Oct 2018, 6:36 PM
Mark
2 Réponses
+ 2
table{ border-collapse: collapse; } td{ border:1px solid black; } EDITED: Corrected rule selector
22nd Oct 2018, 7:18 PM
KrOW
KrOW - avatar
+ 2
Thanks a lot.
22nd Oct 2018, 7:18 PM
Mark