+ 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
11 Respuestas
+ 1
Try adding
frame="void"
to the table attributes. Is that what you were after?
+ 3
Thnks Russ it was on mark
+ 2
Ok
+ 2
No I want to remove the external border
+ 2
Like tic tac toe ,if u understand what I mean
+ 2
That's what that looks like on mine?
https://code.sololearn.com/W2hitY6fx41c/?ref=app
+ 2
how do i know if i am using html5??
+ 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
+ 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.
+ 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.
+ 1
no sir cellspacing and cellpadding are working in my case. just remove the border-collapse and cellspacing will start to work.