Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:48:47+00:00 2026-06-14T04:48:47+00:00

the following fiddle demonstrates the problem: http://jsfiddle.net/inconduit/2z6Xa/ this is using jquery.dotdotdot plugin for truncating

  • 0

the following fiddle demonstrates the problem:

http://jsfiddle.net/inconduit/2z6Xa/

this is using jquery.dotdotdot plugin for truncating text with an ellipsis.

when there’s a single word like a_really_long_filename_with_no_spaces_at_all.txt that overflows a div, this plugin does not truncate it. is there any way to make this happen?

the html:

  <div id="wrapper">this_does_not_truncate_because_there_are_no_spaces</div>
  <br><br>
  <div id="wrapper2">this one has spaces and is truncated properly</div>

​
the javascript:

 $("#wrapper").dotdotdot({wrap: 'letter'});
 $("#wrapper2").dotdotdot({wrap: 'letter'});

the css:

#wrapper {
    width: 100px;
    height: 20px;
    border: 1px solid red;
}
#wrapper2 {
    width: 100px;
    height: 20px;
    border: 1px solid red;
}​
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:48:49+00:00Added an answer on June 14, 2026 at 4:48 am

    Do you really need a plugin to do this? Have you tried using the CSS text-overflow:ellipsis? It’s supported by every single browsers except really old ones like IE 5.5 or below or FF 6 or below.

    More information on text-overflow: https://developer.mozilla.org/en-US/docs/CSS/text-overflow

    A demo page: http://davidwalsh.name/demo/css-ellipsis.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Concider the following fiddle: http://jsfiddle.net/dts2T/ This has been bugging me for quite some time
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
Here is my problem summarized in the following JS Fiddle : http://jsfiddle.net/sidou/3R5B2/ I need
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
I have the following fiddle for people to see http://jsfiddle.net/defaye/DhaHP/4/ The result on full
All, I've got the following JS Fiddle: http://jsfiddle.net/HHtBX/11/ I'm trying to basically close all
I have made the following fiddle: http://jsfiddle.net/hxQE4/ See how the right arrow pushes the
Consider the following Fiddle: http://jsfiddle.net/wNrqu/ For the last 4 hours I have been trying
As you can see in the following Fiddle: http://jsfiddle.net/EvWc4/3/ , I'm currently searching a
I have created the following fiddle: http://jsfiddle.net/cgoddard/eceGc/1/ And I was wondering what needed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.