How can I break a line which is over-flowing using HTML or CSS?

Discussion in 'HTML & Website Design' started by Cyber Criminal, Jan 14, 2011.

  1. #1
    Cyber Criminal, Jan 14, 2011 IP
  2. u238

    u238 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do this with CSS3 and text-overflow: (can't link, im a newb)

    eg: text-overflow: ellipsis;
     
    u238, Jan 14, 2011 IP
  3. Cyber Criminal

    Cyber Criminal Well-Known Member

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #3
    Exactly this is what I'm looking for, but
    text-overflow: ellipsis; 
    Code (markup):
    doesn't seems to be a CSS property.

    Edit: It doesn't work :(
     
    Last edited: Jan 14, 2011
    Cyber Criminal, Jan 14, 2011 IP
  4. anilkiral

    anilkiral Greenhorn

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    It's a CSS3 property I think. But I think this is done with a server-side language like PHP.
    This site can help you: phpcode.mypapit.net/truncate-a-very-long-text-with-php-function/33
     
    anilkiral, Jan 16, 2011 IP