Wednesday, December 21, 2011

How to create a blank cell with borders in a HTML table

If you use tables in your web pages (who doesn't these days?), you might have noticed that empty cells does not display all of it's borders. Some HTML authors overcome this by placing a [transparent] 1x1 pixel image inside the cell. Here's another way to accomplish the same results:
Place a non breaking space --   -- inside the cell. For example:
...
<TD>
&nbsp; </TD>
...

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Hosting