SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    text in the center if little

    I want to have the little text for a div (the div for text of the site) at the center
    but the bigger not to have this style.
    Till now I use javascript to find the lenght of the characters of the div but I want to know if there is a way with plain css

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,496
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Little text?
    Bigger text?

    Can you post an example?

  3. #3
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for my English.
    So little text is the text with little length.
    A text with 6-7 lines for example,as you see that in IE.
    A bigger for example with 15-20 lines...
    This div has height 330px so I want a way the text with 130-150px height to have a distance from the top and the bottom


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
  •