Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty-cells style not working 2

Status
Not open for further replies.

WebABen

Programmer
May 18, 2001
9
GB

Seems to work in N6, not earlier and not in IE5.5.

I have a table where empty cells (just  ) are picking up no border and it looks ugly.

style="empty-cells: show" is supposed to resolve this according to the W3C site but isn't.


Here's what else is in the table tag
<table border='1' style='empty-cells: show' cellspacing='0' cellpadding='0' bordercolor='#000000' bordercolorlight='#000000' bordercolordark='#ffffff'>

thanxx, Ben
 
Hello WebABen!

Try to put &nbsp; into empty cells:
<td>&nbsp;</td>

Good Luck!
 

Thanks Eugene - but for various reason this won't work! (the content & some of HTML comes from XML files I can't change). I can only change style or elements in the tags for <TABLE><TD> that get applied from a configuration file. Ben
 

I've found a sort of solution for this, putting <br> in all the empty cells forces the cells to take a border. Its not much of a solution as it also doubles the size of the tables.....
 
I would do any of these two things:

1) change XML file - if it has no data set default value to &quot;&amp;nbsp;&quot;;

2) put &amp;nbsp; at the end of any TD and put any data from XML before this - <td>...some data from XML...&amp;nbsp;</td>

That should work!
 
I like Eugene's 2nd solution. It might make the cells just a little longer, but not twice as high. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top