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 8994765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:30:14+00:00 2026-06-15T23:30:14+00:00

I was wondering if there is some css/js magic that can prevent text from

  • 0

I was wondering if there is some css/js magic that can prevent text from splitting vertically in the middle of a line. I’m using overflow:hidden in the below example. The text is not static … it is rich-text entered by a user so I do not have control over the formatting.

the third line of text is clipped in the middle

i would like it to look like this:

enter image description here

  • 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-15T23:30:16+00:00Added an answer on June 15, 2026 at 11:30 pm

    Here’s a possible example solution:

    .dataTable td {
      /* essential */
      text-overflow: ellipsis;
      width: 200px;
      white-space: nowrap;
      overflow: hidden;
    
      /* for good looks */
      padding: 10px;
    }
    

    via http://davidwalsh.name/css-ellipsis

    Solution example: http://jsfiddle.net/4Fpq2/

    This should at least provide a starting point.

    Also, here are some additional possible solutions:

    • http://www.mobify.com/dev/multiline-ellipsis-in-pure-css
    • http://softwareas.com/pure-css-solution-to-avoid-cutting-off-text
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if there's a jQuery-like css selector that can be used in C#.
I am wondering if there is some way to call C++ code from Common
I am wondering if there is some way to align text on the right
Firstly, I was wondering if there was some kind of built in function that
I am wondering if there is some way to change a CSS attribute for
I have a line where I add some css: $(#foo).html(Some text with a link
I am wondering if there is some way to make an box have the
I am wondering if there is some way to replicate Safari (on the iPhone's)
I am wondering if there is some way to rotate a created ABPeoplePickerNavigationController. I
I am wondering if there is some way to do a doesn't equal command

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.