Resources | CSS | Text Justifying

Justifying Text:


***This will only work in IE and Netscape Versions 5.0 and higher***

I've gotten a few e-mails recently asking how to justify text. Its a fairly simple solution, you just need to use either CSS (Cascading Style Sheets) or in-line STYLE tags. First, set up a class that will define your text-alignment:



You can also set the text-align to "left" or "right".

Next, you need to set up the areas of your page that you want justified. I've found that it works best if you define each paragraph seperately. So, for each paragraph of text you should have a seperate DIV tag surrounding it. If you set your whole page to one justified DIV tag, browsers will often have difficulty interpreting this and will usually end up ignoring the justification. Here is how you can set up your DIV tag:





Comment on this article or ask us a question: click here !
armbrustconsulting.com