Why when I create a table with empty cells do I get what looks like a raised or miscolored cell where there is no data?
Author: Jeff Singer
More by this author
Added: Nov 14, 2004 Rating: Less than 3 votes yet
Level: Beginner Software:




As with many things in HTML, there is not what I consider to be a logical reason for this particular behavior. The trick around it is to stick into the empty cell an invisible or non-printable character. The favorite for this purpose is
| Table Containing True Empty Cells | |
| This cell has text | |
| This cell has text | |
Source code for table with empty cell problem
|
| Table with Hidden Characters in Empty Cells | |
| This cell has text | |
| This cell has text | |
Source code for table without empty cell problem
|
See Also:
- I need to have two tables sit side by side, but no matter what I do, they end up stacked. What gives?
- How can I create tables with vivid colors with no spaces or lines between them?
- Every time I try to list numbers in columns with text, I can't get the decmal points to line up. What gives?
- I have a rather expensive painting I want to show on my site, but I can't afford a frame. What can I do?
- How can I have a fixed width left margin for use with a background graphic that has a dark left region?
- How can I present text in columns, like a newspaper?
- Columns are nice. How can I divide them with a line?
- How do you get your text into those pretty boxes?
- How to I get things to align properly within my tables?

10 Random HTML and CSS Tutorials :
10 Random Markuptutorials.com Materials:




