Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2003
    Thanked 0 Times in 0 Posts

    is justification of text possible?

    Hi all
    I have another dumb question

    is it possible to justify text?
    If so, how?

  2. #2
    Master Coder
    Join Date
    Feb 2003
    Umeň, Sweden
    Thanked 83 Times in 74 Posts
    originally from [CSS1]:

    5.4.6 'text-align'

    Value: left | right | center | justify
    Initial: UA specific
    Applies to: block-level elements
    Inherited: yes
    Percentage values: N/A

    This property describes how text is aligned within the element. The actual justification algorithm used is UA and human language dependent.


    DIV.center { text-align: center }

    Since 'text-align' inherits, all block-level elements inside the 'DIV' element with 'CLASS=center' will be centered. Note that alignments are relative to the width of the element, not the canvas. If 'justify' is not supported, the UA will supply a replacement. Typically, this will be 'left' for western languages.

    CSS1 core: UAs may treat 'justify' as 'left' or 'right', depending on whether the element's default writing direction is left-to-right or right-to-left, respectively.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  3. #3
    Regular Coder
    Join Date
    Jun 2002
    Iowa / Notre Dame
    Thanked 0 Times in 0 Posts
    hmm, along this line: I have noticed in some cases that text-align: justify tends to make its containing box a little bit wider. I once had a site where if I changed the text to justify (and that's all I did mind you) it would give the page horizontal scroll bars. But if it was just plain left align there were no scroll bars. Very interesting indeed...Anyone else noticed this?
    My Site {Mike's Adventures}

    Yikes, forums are almost too much fun.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts