Re: spaces/indentions

by "Steve Antonio" <santonio(at)delanet.com>

 Date:  Mon, 11 Oct 1999 00:19:06 -0400
 To:  <hwg-Basics(at)mail.hwg.org>
 References:  hotmail
  todo: View Thread, Original
> For my web site I use the command & nbsp to do a space.  A friend of mine
> looked with Netscape and saw just a whole row of & nbsps....
>
> is there a universal indention tag?
>
> TIA,
> ~Megan

Megan,

If you entered the 'command' in your web page just as you have it in your
message, then that's the reason why those characters are showing up. There
should not be a space between the ampersand (&) and the characters "nbsp".
Also, the whole 'string' should be immediately followed by a semicolon (;).
The final result being "&nbsp;" without the quotes. This is what is called a
character entity, specifically a Non-Breaking SPace entity. All entities
begin with an ampersand and end with a semicolon.

It is not always possible, but there are more preferable ways to create
white space. If you trying to create space in between table cells, you may
want to try the "cell spacing" attribute of the "TD" element. If it's an
embeded object of some sort, such as an image, you may want to try the
"vspace" and "hspace" attributes. These create "gutters" (margins) around
the object. All three attributes are given a numeric value in pixels.

To learn more about character entities and the attributes mentioned above,
refer to the W3C HTML 4.0 specification at http://www.w3.org/TR/REC-html40.

good luck,
Steve
santonio(at)delanet.com

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA