Creating empty table cells

Sometimes you’ll want to create table cells (<td>s) with nothing in them; for example, when a particular row doesn’t have any data for one of its columns. Usually, the best way to create an empty table cell is with a non-breaking space, as follows:


<td>&nbsp;</td>

Don’t just use <td></td> as this will cause your tables to appear rather strange on some browsers!


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *