Solved

Justified Paragraph

Posted on 1998-02-11
4
969 Views
Last Modified: 2008-03-03
I've seen and heard about a <p align=justify> and tried it in vain, i got some info in a newsgroup that it was a feature of ns comm 4+ and msie 4+ and a future enhancement of html. I also heard that it was used with style sheets. So i would like to know the easy way (if there is one) to justify a paragraph. And SHOULD I use this tag or is it unreliable, what do you think, what could go wrong with my code so it does not work, i only used the <p align=justify> tag, i know style sheet needs a bit more info in the header, so should i check that out or it it supposed to work standalone?

thanks...
0
Comment
Question by:njacques
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
tecbuilder earned 50 total points
ID: 1843007
Yes there is a <p align="justify">, but only via HTML 4.0.  Browser's that don't know HTML 4.0 eg. MSIE 3.x and earlier and Netscape 3.x and earlier should ignore the align command.  You can also use style sheets as well, but again this will only work for those browsers that understand HTML 4.0.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1843008
Just to clarify tecbuilder's answer, HTML 3.0 doesn't support fully justified paragraphs, only left, right, and center.

(Don't worry tecbuilder, I'm not after your points this time, only when you answer incorrectly.)
0
 

Author Comment

by:njacques
ID: 1843009
I tried it once more and got it to work, the only problem is that i hate the <p> tag, it makes a big separation between vertical elements. I have a line right now just above my text that i keep 30 pixels appart with a 1x1 blank file to make an "alinea" but when i remove my "alineas" and put the p align=justify, the text looks ok and justified but now i have around 3/4 to an inch spacing between the elements... i cannot accept that i have tried the font align= but it does not accept the justify part.. what should i do... justifying without <p> of with <p> but not that musch vertical spacing

You can take a look at the website at this address
(what's online is not justified and modified but you will get the idea)

http://www.sie.qc.ca/users/njacques/web 

bye
0
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1843010
You can also use <div align="justify">.  This may be a better solution for your needs.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question