FrankMe: Zweizeiler mit "..." abschliessen

Hallo,

ich habe ein div-Element mit bestimmter Breite und Höhe für zwei Zeilen Text. Der Text ist zu lang und soll abgeschnitten und mit "..." beendet werden. Leider werden bei mir die "..." nicht angezeigt. Woran kann das liegen?

jsfiddle.net/frankmehlhop/trmn72jc/6/

Grüße, von Frank

    display: block; /* or inline-block */
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5em;
  1. hallo

        display: block; /* or inline-block */
        text-overflow: ellipsis;
        word-wrap: break-word;
        overflow: hidden;
        max-height: 3em;
        line-height: 1.5em;
    

    The text-overflow property only affects content that is overflowing a block container element in its inline progression direction (not text overflowing at the bottom of a box, for example).

    --
    Neu im Forum! Signaturen kann man ausblenden!