Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
empty-cells property in CSS
WhatsApp
Mahak Gupta
4y
6.9
k
0
1
25
Blog
empty-cells property in CSS
It is used to hide the border and the background on the empty cells in the table.
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html>
<head>
<style type=
"text/css"
>
table {
border-collapse: separate;
empty-cells: hide;
}
</style>
</head>
<body>
<table border=
"2"
>
<tr>
<td>mahak</td>
<td>garg</td>
</tr>
<tr>
<td></td>
<td>gupta</td>
</tr>
<tr>
<td>ashima</td>
<td></td>
</tr>
</table>
</body>
</html>
Output:
empty-cells propthe erty in CSS
Up Next
CSS Font-Family Property
Ebook Download
View all
Frontend Developer Interview Questions and Answers
Read by 955 people
Download Now!
Learn
View all
Membership not found