Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will a table row be displayed if all its cells are empty?

I have an empty table row just for separation between rows.

<tr>
  <td colspan="5"></td>
</tr>

It's rendered in IE, FF, Opera and Safari. The question is, whether I should put some content inside of it or it is okay to leave it as it is?

Like:

<tr>
  <td colspan="5">&nbsp;</td>
</tr>
like image 354
User Avatar asked May 28 '09 08:05

User


1 Answers

Well you could put an &nbsp; as column content to make sure the rows are displayed. The better way is to use CSS for spacing though.

like image 97
Lennart Koopmann Avatar answered Oct 10 '22 19:10

Lennart Koopmann