PDA

View Full Version : HTML - Justifying and spacing


DK
07-03-1999, 07:40 AM
What's the HTML code that will make the right side of my page straight instead of jagged....what would justify it?

What is the HTML code for a space?[nbsp][nbsp]Say I want 4 spaces between a word, what code do I use?

What code would I use to get a second line to go directly under another word....like this.....
1. Jim is very nice
[nbsp][nbsp] And his sister is tooo

Normally the second line goes all the way over to the left.[nbsp][nbsp]How can I get it to look like the above?

Thanks

fuddmain
07-03-1999, 12:58 PM
<p align=&quot;justify&quot;> to justify a paragraph.

&amp;nbsp - a non-breaking space.

For the last item you are looking for an ordered list:

<ol>
Jim is very nice
And his sister is tooo
[/list=a]

Leave off the number as an ordered list will number each list item.

You may want to shoot over to www.amazon.com (http://www.amazon.com) and pick up _HTML The Definitive Guide (2nd Edition)_ from O'Reilly.

Cheers
------------------
Brian
[nbsp]brian@fuddmain.com[nbsp]

Mandi
07-04-1999, 01:04 AM
To justify text, use <p align=justify>

A regular space will get you one space, but added spaces usually won't show up, unless you use a WYSIWYG editor that adds in the extra tags for you.[nbsp][nbsp]To get additional spaces, use the &amp;nbsp; tag.[nbsp][nbsp]It stands for &quot;Non Breaking Space.&quot;

I dunno if this is the most elegant solution to the last question, getting text to move over to the right a bit, but here's what I do:

First, you must have a set table width.[nbsp][nbsp]Without one, the lines are resized according to the viewer's settings.[nbsp][nbsp]I view the text to see where the line naturally breaks, and then add a
tag.[nbsp][nbsp]Next, I add the appropriate number of the &amp;nbsp; tags to bump the text on the next line.[nbsp][nbsp]You can see an example of this on my Site History page:[nbsp][nbsp]www.cgspouses.net/siteinfo/history/ (http://www.cgspouses.net/siteinfo/history/)


Another option is to use the <ul> tag, but not use the accompanying tags.[nbsp][nbsp]First line would be:

1.Blah blah blah
<ul>More blah blah blah[/list]

This will yield an indent, but it is a fixed distance, and may or may not match what you have in mind.

Good luck!