Friday 16 December 2011

CSS3 text-overflow ellipsis character

CSS3 text-overflow property, which automatically selects the best truncation point and adds ellipses.
If text overflow is supported, the paragraph will appear as a few words followed by an ellipsis character (...) this property upporte all major browsers.
.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis; 
    -ms-text-overflow: ellipsis;
    -moz-binding: url('ellipsis.xml#ellipsis');  
}

No comments:

Post a Comment