Reply to Re: empty cells in a table not displaying correctly

Your name:

Reply:


Posted by Jukka K. Korpela on 11/29/07 22:43

Scripsit Jud McCranie:

>>  
>
> That works, thanks. That puts a half space in there, right?

No, by definition   means the NO-BREAK SPACE character, which is
like the SPACE but probihits line breaks before and after (which means
nothing here) and, as a strange effect due to oddities in web browsers,
partly described in HTML specs, acts as nonempty content in a table
cell.

So it's more or less a hack but it works, mostly. It causes trouble if
you want to make the cell very small in either direction, since NO-BREAK
SPACE has some definite width and some height.

It's a good idea to consider whether it would be better to insert some
other content into the cell, such as "N/A" or "0" or "–" or
whatever constitutes a useful indication or hint. After all, the user
might not immediately realize _why_ the cell is empty and might even
assume that it might be an error.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация