182x Posted July 22, 2007 Share Posted July 22, 2007 Hey guys, I have designed a table which gets its data dynamically from a MySQL database, if there is an empty cell in the table it looks fine in firefox but in i.e it looks different as if the empty cell has been extruded unless there is something like <td> </td> in the table cell. I was just wondering is there anyway round this problem so the empty cells don't look extruded in the IE browser? Thanks. Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/ Share on other sites More sharing options...
Barand Posted July 22, 2007 Share Posted July 22, 2007 You've answered it yourself. Put in empty cells Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/#findComment-304764 Share on other sites More sharing options...
182x Posted July 22, 2007 Author Share Posted July 22, 2007 how do you test if a cell is empty though is there is default values or null is not used? Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/#findComment-304767 Share on other sites More sharing options...
AndyB Posted July 22, 2007 Share Posted July 22, 2007 how do you test if a cell is empty though is there is default values or null is not used? Can you carefully rephrase that so your question is clear? Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/#findComment-304837 Share on other sites More sharing options...
Barand Posted July 22, 2007 Share Posted July 22, 2007 if ($whatIAmWritingToThisCell == '') echo '<td> </td>'; else echo "<td>$whatIAmWritingToThisCell</td>"; Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/#findComment-304851 Share on other sites More sharing options...
ToonMariner Posted July 23, 2007 Share Posted July 23, 2007 in css you can use the table { border-collapse: collapse; } this would ensure the formatting to empty cells is still applied - without the need for filling each empty cell with Link to comment https://forums.phpfreaks.com/topic/61252-table-data-question/#findComment-305260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.