Home > Web Front-end > CSS Tutorial > How to Make Empty Cell Borders Visible in IE7?

How to Make Empty Cell Borders Visible in IE7?

Barbara Streisand
Release: 2024-11-21 13:04:20
Original
466 people have browsed it

How to Make Empty Cell Borders Visible in IE7?

Border Style for Empty Cells

In IE 7, an empty cell's border may not be visible. To solve this, consider the following CSS solution:

Option 1: Non-Breaking Space ( )

Insert a non-breaking space ( ) into the empty cell to force its presence:

td:empty {
  content: " ";
}
Copy after login

Option 2: IE8 Empty-Cells:show

IE8 supports the empty-cells:show property to display empty cells:

td:empty {
  empty-cells: show;
}
Copy after login

Note for IE7

It's important to note that empty-cells:show does not work in IE7. Therefore, the non-breaking space method is the recommended solution for ensuring border visibility in empty cells.

The above is the detailed content of How to Make Empty Cell Borders Visible in IE7?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template