View Full Version : HTML - Justifying and spacing
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="justify"> to justify a paragraph.
&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 &nbsp; tag.[nbsp][nbsp]It stands for "Non Breaking Space."
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 &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!
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.