+ 2

How to make 1 line table border ?

Hello, i just want to create a table with 1 line border and not 2 as shown in this code. https://code.sololearn.com/W4rLuZ129Yhc/?ref=app So is there a way to do it ? I already tried all border types and none of them worked. Thanks in advance.

2nd Jul 2018, 5:31 PM
Mohamed IHeb Ferjani
Mohamed IHeb Ferjani - avatar
6 Antworten
+ 2
I didn't mean the number of rows, i meant the border. And i figured it out, you have to add "border-collapse:collapse;" in the table's style. https://code.sololearn.com/W8zcq1jOF7dJ/?ref=app Thanks for your answers though ;)
2nd Jul 2018, 5:49 PM
Mohamed IHeb Ferjani
Mohamed IHeb Ferjani - avatar
2nd Jul 2018, 5:38 PM
Hans Larry Mba Bekale
Hans Larry Mba Bekale - avatar
+ 13
do you mean a table with one line in border? <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <table border="0" align="center"> <tr> <td>Text</td> <td>Text</td> </tr> </table> </body> </html>
2nd Jul 2018, 5:35 PM
Hans Larry Mba Bekale
Hans Larry Mba Bekale - avatar
+ 12
ok!! it deals with the border!😊😶😶😶
2nd Jul 2018, 5:41 PM
Hans Larry Mba Bekale
Hans Larry Mba Bekale - avatar
+ 4
border="0" ? Alternatively, you can also remove the border attribute from your table element ;)
2nd Jul 2018, 5:38 PM
777
777 - avatar
0
change your code. inside table tag use border =0 That'll work 👍
4th Jul 2018, 12:25 PM
Amit Gupta
Amit Gupta - avatar