Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to align paragraph margin to margin?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248155
    mw84
    Participant

    That is, make paragraph left and right aligned. I attempted
    p {margin-left:0; margin-right:0}
    however, it’s just left-aligned.

    For clarity, when I say, margin to margin, I meant, text in each line starts at utmost left and ends at the utmost right. It’s doable, right? If so, how?

    Thanks.

    #248158
    Paulie_D
    Member

    I think you are looking for

    p {
      text-align:justify
    }
    
    

    Note that you can’t “justify” the last line.

    http://codepen.io/Paulie-D/pen/oYWPMx

    #248159
    mw84
    Participant

    Never mind, I figured it out. Justify, which I’ve used before.

    #248174
    mw84
    Participant

    yeah of course one can’t justify the last line unless its length reaches such parameter.

    Btw, know any good resource for turning dynamic data into a Word doc, I’m doing ok but can be better… Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.