jquery elipsis – dotdotdot plugin

jQuery.dotdotdot is an advanced cross-browser ellipsis for multiple line content. It adds an ellipsis after cut off text to indicate that there is more text than currently visible. Not only on a single line of content, but also particularly on multiple lines of content.

To use add jquery library and script file in header and on document ready call function.
<script type=”text/javascript” language=”javascript” src=”jquery.js“></script>
<script type=”text/javascript” language=”javascript” src=”jquery.dotdotdot-1.2.1.js“></script>

$(‘.ellipsis, .ellipsis-e’).dotdotdot();
watch: ‘window’
after: ‘a’


.box.box-half {
    float: left;
    width: 295px;
.box.box-7 {
    height: 110px;
          <div style="height: auto; width: auto;">
content goas here...

For more details Visit: http://dotdotdot.frebsite.nl/

Share this nice post:

3 thoughts on “jquery elipsis – dotdotdot plugin

Comments are closed.