H
Haris Bogdanovich
Why the td tag has no border
if it's empty ?
How to fix that ?
Thanks
if it's empty ?
How to fix that ?
Thanks
Haris said:Why the td tag has no border
if it's empty ?
How to fix that ?
2011-11-20 21:53 said:I see a lot of this:<td> </td>
Yes, and it usually helps, but sometimes it's not applicable. Using the
no-break space implies some minimal width and height for the cell, and
this might not desirable in contexts where a cell with empty contents is
used.
Workarounds include the use of a single-pixel transparent image. But
usually solutions are better than workarounds: ask yourself why the cell
is empty, and you may find a reason to put some actual content there.
http://www.cs.tut.fi/~jkorpela/HTML/emptycells.html
2011-11-21 1:07 said:Very good examples in your page rendered differently if using IE9 or
SeaMonkey. With SeaMonkey, we dont have a border for the two cases and
for the one pixel picture, the row is minimized with SeaMonkey and as
high as the other with IE9.
I'm not sure of what you mean here. I just downloaded and installed
SeaMonkey on Windows 7 Pro and checked the page on it. As far as I can
see, SeaMonkey draws borders around cells containing .
And both on IE 9 and Seamonkey show a "minimized" row when the only cell
contains only a one-pixel image. (The row is a few pixels high due to
default cellpadding.)
Are you using some special environment or setting=
And both on IE 9 and Seamonkey show a "minimized" row when the only cell
contains only a one-pixel image. (The row is a few pixels high due to
default cellpadding.)
Why the td tag has no border if it's empty ? How to fix that ?
2011-11-22 1:55 said:You can see the screen-copies SM-1, SM-2, IE9-1 and IE9-2 here
http://cjoint.com/?0KwaY0MytYX
Thank you, this helps. The SeaMonkey rendering seems to have borders
around the empty cell - but the border style is the browser default,
which may not look like a real border. I have modified my page
http://www.cs.tut.fi/~jkorpela/html/emptycells.html
to set border style, color, and width more prominent.
On IE, it's more complicated. The rendering on IE 9 depends on the
browser mode and on its idea of document mode - a real mess. If you F12
on IE 9, you can test the effects of various modes. In the modern modes,
IE 9 shows a border even around empty cells, so the problem does not
appear there. But the dual problem exists: if you do _not_ want borders
around an empty cell, you need to explicitly prevent them. Luckily this
is easy on modern browsers using CSS (either set empty-cells: show on
the table element or set border: none on the cell).
2011-11-23 12:33 said:There is still a problem on the example number 4 with the little pic of
one pixel in the cell. With SM the row height is null - with IE9 this
row have the same height as the others.
Ray_Net said:There is still a problem on the example number 4 with the little pic of
one pixel in the cell. With SM the row height is null
2011-11-23 17:39 said:Not in my SeaMonkey! Not even with Mozilla 1.0 the "daddy" of SeaMonkey...
Jukka said:I can't explain that, but I have now modernized the page
http://www.cs.tut.fi/~jkorpela/html/emptycells.html
somewhat and added notes about preventing borders.
I can't explain that, but I have now modernized the page
http://www.cs.tut.fi/~jkorpela/html/emptycells.html
somewhat and added notes about preventing borders.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.