Why is this not working?? I want to remove only the exterior border. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is this not working?? I want to remove only the exterior border.

<!doctype html> <html> <head><title></title></head> <body> <table cellspacing="50px" cellpadding="50px" border="1px #ffffff" style="border-collapse: collapse;"> <tr border="1px #000000"> <th >NAME</th> <th>Roll No</th> </tr> <tr border="1px #000000"> <td >Amod</td> <td >1710991081</td> </tr> <tr border="1px #000000"> <td>Advaith</td> <td>16192030</td> </tr> </body> </html> https://code.sololearn.com/W2LdQq7Dy823/?ref=app

19th May 2019, 8:10 AM
Amod T V
Amod T V - avatar
11 Answers
+ 1
Try adding frame="void" to the table attributes. Is that what you were after?
19th May 2019, 2:26 PM
Russ
Russ - avatar
+ 3
Thnks Russ it was on mark
19th May 2019, 2:37 PM
Amod T V
Amod T V - avatar
+ 2
Ok
19th May 2019, 1:56 PM
Amod T V
Amod T V - avatar
+ 2
No I want to remove the external border
19th May 2019, 2:33 PM
Amod T V
Amod T V - avatar
+ 2
Like tic tac toe ,if u understand what I mean
19th May 2019, 2:33 PM
Amod T V
Amod T V - avatar
+ 2
That's what that looks like on mine? https://code.sololearn.com/W2hitY6fx41c/?ref=app
19th May 2019, 2:35 PM
Russ
Russ - avatar
+ 2
how do i know if i am using html5??
19th May 2019, 3:08 PM
Amod T V
Amod T V - avatar
+ 1
It works for me. I only see the the <td> borders. P.s. could you please provide a code playground link next time? It helps people to help you better
19th May 2019, 10:33 AM
Roel
Roel - avatar
+ 1
Not a problem. Glad to help. A few FYIs: <tr> tags don't have a border attribute, so these don't have any effect in your code. You have omitted your closing </table> tag. This isn't a problem at the moment, but if you attempt to expand on your code, it could cause some unexpected behaviour and some head-scratching. cellspacing and cellpadding attributes aren't supported in HTML5.
19th May 2019, 3:03 PM
Russ
Russ - avatar
+ 1
Actually your html tag "<!DOCTYPE html> declares HTML5. Maybe some browers will not work properly when you have HTML5 declared but use non-HTML5 code.
19th May 2019, 3:45 PM
Russ
Russ - avatar
+ 1
no sir cellspacing and cellpadding are working in my case. just remove the border-collapse and cellspacing will start to work.
20th May 2019, 4:37 AM
Amod T V
Amod T V - avatar