#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Posts
    29
    Rep Power
    0

    Text Alignment Question


    I was wondering if this is possible. I'm not even sure how to ask this question, I guess it falls under right-justify.

    Example:

    12/12/2012 - Blah Blah Blah - More Blah
    12/12/2012 - Blah Blah Blah Blah Blah - More Blah

    What I want to do is line up the 3rd string "More Blah" in the example so that they are right-justified. As you can see, its position is determined by the 2nd string.

    Is there any easy way of doing this? The three variables are dynamically generated, but for styling reasons I want the last ones to all line up.
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,243
    Rep Power
    967
    Easy way: just put it in a table. Harder way: use CSS.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Posts
    29
    Rep Power
    0
    It's being put inside a PDF formfield so I can't do that.
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,243
    Rep Power
    967
    Ah, you didn't say anything about it being in a PDF.

    If this is just content inside the PDF, a table might still work. But if it's something in a field on a PDF form, I really have no idea if it's possible. The only other option would be to try and manually calculate the longest value, and then append spaces to the shorter ones to try and get them to line up.

IMN logo majestic logo threadwatch logo seochat tools logo