+ 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.
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 ;)
+ 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>
+ 12
ok!! it deals with the border!😊😶😶😶
+ 4
border="0" ?
Alternatively, you can also remove the border attribute from your table element ;)
0
change your code. inside table tag use border =0
That'll work 👍