Solved

Justified Paragraph

Posted on 1998-02-11
4
955 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spacing 5 56
USE HTML to redirect a webpage to a local Xcel file. 2 40
Login area of a page 4 32
Why my select dropdown does not work? 8 25
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now