Search code examples
htmlcsstexttext-align

CSS making text align left and justify at same time


Is there any way to make the text align left and justify as same time? Mean something like left-justify. Is there any way to achieve this? Thanks for help.


Solution

  • Left-justified means that the left edge of the text is aligned. Justified text means that both the left edge and the right edge of the text is aligned. So "left-aligned and justified" is no different from "justified", so your question doesn't make any sense to us.

    Left-aligned:

    Four-score and seven years ago, our fathers 
    brought forth on this continent a new nation, 
    conceived in liberty, and dedicated to the 
    proposition that all men are created equal.
    

    Justified:

    Four-score  and  seven years  ago, our fathers 
    brought forth on this continent a  new nation, 
    conceived  in  liberty, and  dedicated to  the 
    proposition that all men are created equal.
    

    Right-aligned:

      Four-score and seven years ago, our fathers 
    brought forth on this continent a new nation, 
       conceived in liberty, and dedicated to the 
      proposition that all men are created equal.
    

    Perhaps there's some other kind of alignments you're trying to achieve?