Re: Re:

by "Darrell King" <darrell(at)webctr.com>

 Date:  Mon, 27 Sep 2004 21:40:29 -0400
 To:  "HWG Techniques" <hwg-techniques(at)hwg.org>
 References:  localhost localhost2
  todo: View Thread, Original
&nbsp; = non-breaking space

A blank row can be created using CSS to adjust the height of a given cell in
a 1-cell row. This is assuming that simply ending one table and beginning
another wouldn't be more appropriate. If you need only whitespace without
the actual table row, then you can adjust

In all cases, CSS should be used to format visual effects. A paragraph is
structurally a block of text. A non-breaking space should be used when you
want a space in a line of text that won't break if there is not enough
horizontal room for the text.

<table summary='Test'>
 <tr>
  <td style='width:150px;border: #000 solid 1px;'>This is row 1</td>
  <td style='width:150px;border: #000 solid 1px;'>This is row 1</td>
 </tr>
 <tr>
  <td colspan='2' style='height: 50px;'></td>
 </tr>
 <tr>
  <td style='width:150px;border: #000 solid 1px;'>This is row 2</td>
  <td style='width:150px;border: #000 solid 1px;'>This is row 2</td>
 </tr>
</table>


Of course, if you are supporting older platforms and coding in 3.2 Final or
4.01 of any flavor, ignore what I just said...:).

D

----- Original Message ----- 
From: "David Kendall" <david(at)homepagesplus.com>


> I am curious as to why you would have empty HTML elements?  What is
> the purpose of  <p></p>?

I find a blank area to be quite useful.  I encountered it today when I
was making a quick update to a page, which had an actual table on
it (I'm trying to move away from doing layout by tables, but this is a
legitimate table) and the actual data of the cell is blank, to indicate
a vacant spot.

I've used <p></p> as a down and dirty way of having a row of blank
on a page.  Off the top, I can't think of a way to have a row of blank
without <p></p> even though I realize not all browsers would render
that.

BTW, what does "nbsp" stand for?  ("&amp;" is obvious, but
"&nbsp;" isn't.)

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.