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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:35:07+00:00 2026-06-11T12:35:07+00:00

I was looking to implement the following design to the HTML/CSS. I have got

  • 0

I was looking to implement the following design to the HTML/CSS.

I have got problems with the text overflow in the column. Currently the table column width is given in the percentage format so that the column width will change depending on the screen size, but there is a minimum width too. In the first text column, you can see that the content is extending and produced a second line due to the long size. How to avoid this problem using the text overflow? Or any other solution? Also, you can see that a set of icons are appearing in the same row when the mouse hover takes place. At this time, the text below the icons should hide and it should be shortened as shown in the design. Can you advise me to get a solution to this problem? I have tried text-overflow: ellipsis. But I’m getting problem when the screen width changes. Since I don’t have a minimum width due to the variable column width, how to cut short the text in this field? Also in the hover case ??

Please let me know if you want to know anything else.

  • 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-11T12:35:08+00:00Added an answer on June 11, 2026 at 12:35 pm

    If you don’t want the text to split in multiple rows, add white-space:nowrap rule.
    Then, set a max-width for the cell.

    For the icons, position them in absolute to the right, with a z-index higher then the text. You’ll have to add a relative position to the containing cell also.
    To keep them visible over text, i’ve added a background color (and some left padding).


    EDIT: Fix for Mozilla

    Mozilla seems to ignore position:relative; for td elements.
    To fix it, you’ve to wrap the td contents inside another div, and apply this style

    .tables td {
        font-weight: 400;
        font-size: 13px;
        border-bottom: 1px solid #E1E1E1;
        line-height: 38px;
        text-align: right;
        white-space: nowrap;
        max-width: 200px; /* just an example */
    }
    
    .tables td > div {
        overflow: hidden;
        width:100%;
        position: relative;
    }
    
    .linkFunctions {
        display: none;
        padding-top: 14px;
        position: absolute;
        right: 0;
        z-index: 999;
        background-color: #FFF9DC;
        padding-left: 3px;
        width: 100%;
        max-width: 120px; /* just an example */
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for the best way to implement the following. I have a MySQL
Just looking for opinions on the following 2 scenarios. We have a table where
I'm looking to implement a bubble sort. I have the following code that I
We are trying to implement the following case. We have a invoice table and
I am looking to implement the opposite behaviour to the following question: CSS Push
I have been looking to implement a custom class of : IList<ArraySegment<byte>> this will
I was looking to implement such menu as http://www.fogcreek.com/FogBugz/learnmore.html (Left hand side) Can anyone
I'm looking for the simplest, most straightforward way to implement the following: main starts
I'm looking to implement a database solution to support very fast column based access
I am looking for best-practice guidance on how to implement the following. I am

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.