+ 7
Please help to solve my code.
My code is not working in my pc on google chrome and ie and all browsers please solve this.. i want to td.one is border and td Name is not bordered.. but this code work on s.learn <head> <title>Page Title</title> <style type="text/css"> .one { border: 1px solid black; } </style> </head> <body> <table> <tr> <td>Name</td> <td class="one">Class</td> </tr> </table>
11 Answers
+ 8
maybe - border: none?🤔😕
+ 6
what i do now
+ 4
This worked for me in safari, chrome, and firefox on mac:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style type="text/css">
.one {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<td>Name</td>
<td class="one">Class</td>
</tr>
</table>
</body>
</html>
+ 3
Don't you need prefixes for the various browsers?
+ 2
Your Code is 99.9 % correct use proper html structure ..
+ 1
It happened to me as well
+ 1
Don't you need prefixes for the various browsers?
+ 1
Just add </body> at the end and run the code. It works.
+ 1
I think you need to add the selector 'td' before '.one' at the head section
0
Try using a prefixer