SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2003
    Location
    Sydney
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vertical justification

    Is there any way to vertically justify text, that is to have a box whose contents will have line-spacing so as to fill the box of its container entirely.

    - Joel

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I'm not really sure what you mean by
    line-spacing so as to fill the box of its container entirely.
    Could you explain that a little further?

  3. #3
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think he means so that the text stretches down the container, line height getting larger as the container gets larger.

    With plain CSS, you can't do it. You could try looking into javascript solutions though. (It may be a pain, I don't know how to find the number of lines of text in a container easily).

    Douglas
    Hello World


Bookmarks

Posting Permissions

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