1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Justify <P>

Discussion in 'CSS' started by T0PS3O, Jul 4, 2005.

  1. #1
    Quick one for the experts... Need all <p>'s justified without having to do a folder-wide string replace.
    SEMrush
    This is part of my CSS Stylesheet.

    p {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000}
    p {  }
    Code (markup):
    Me thinks it's something simple like font-style: justified . Is that it?

    Thanks!
     
    T0PS3O, Jul 4, 2005 IP
    SEMrush
  2. dct

    dct Finder of cool gadgets

    Messages:
    3,134
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #2
    I think it's
    
    p{
    text-align:justify;
    };
    Code (markup):
     
    dct, Jul 4, 2005 IP
  3. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks J.D. but that's in-code isn't it? I want to just add this one thing to my current stylsheet so it;s applied to all these pages which already include the stylesheet.

    Can I change

    p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000}

    to

    p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-align: right} ?
     
    T0PS3O, Jul 4, 2005 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That did the job, cheers!
     
    T0PS3O, Jul 4, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    64
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I just typed the property (text-align) as an example. dct got it right. Here's the reference:

    http://www.w3.org/TR/CSS21/text.html#propdef-text-align

    J.D.
     
    J.D., Jul 4, 2005 IP
  6. SEbasic

    SEbasic Peon

    Messages:
    6,318
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #6
    p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-align: justify;}

    (don't forget the last ";")
     
    SEbasic, Jul 4, 2005 IP
  7. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks guys. Not my style to not look it up but I knew you lot would be on the case within seconds :D
     
    T0PS3O, Jul 4, 2005 IP
  8. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Why is this in that stylesheet?

    p {  }
    Code (markup):
    Surely useless?

    BTW It's missing all ending ;'s so I guess I better fix that (don't you love doing 'a couple of small edits' on someone else's site?).
     
    T0PS3O, Jul 4, 2005 IP
  9. SEbasic

    SEbasic Peon

    Messages:
    6,318
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah, if it's empty, it's useless...
     
    SEbasic, Jul 4, 2005 IP