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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:45:34+00:00 2026-05-27T14:45:34+00:00

Ok. I have for css .rel{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;

  • 0

Ok. I have for css

.rel{
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    -o-text-overflow: ellipsis;  
        -ms-text-overflow: ellipsis;  
    -moz-binding: url('ff.xml#rel');  
    width: 460px;
    line-height: 15px;
        border-top:dotted 1px #dfdfdf;
}  
 .rel:hover{

overflow:inherit;
white-space: inherit;

    }
.rel:hover .rel_source{
    display: none;
    }

my html is

<div >
                                                <div  class="rel">
                                                <a href="http://feedproxy.google.com/~r/HeraldSunNationalNews/~3/N89EJIdwe9E/story-e6frf7l6-1226207160923">Julia Gillard's anti-wrinkle anti- sadsad anti-wrinkle poasdsadasdasdasasdsd</a>
                                                <div class="rel_source" style="line-height:15px">  Herald Sun | <span class="cat_red">1d 9h ago<span></span> </div> 
                                                </div>
                                                <div  class="rel">
                                                <a href="http://feedproxy.google.com/~r/HeraldSunNationalNews/~3/N89EJIdwe9E/story-e6frf7l6-1226207160923">Julia Gillard's anti-wrinkle poasdsadasdasdas anti-wrinkle poasdsadasdasdas asdasd asdsadsad anti-wrinkle poasdsadasdasdasasdsd asds...</a>
                                                <div class="rel_source" style="line-height:15px">  Herald Sun | <span class="cat_red">1d 9h ago<span></span> </div> 
                                                </div>
                                                <div  class="rel">
                                                <a href="http://feedproxy.google.com/~r/HeraldSunNationalNews/~3/N89EJIdwe9E/story-e6frf7l6-1226207160923">Julia Gillard's anti-wrinkle poasdsadasdasdas anti-wrinkle poasdsadasdasdas asdasd asdsadsad anti-wrinkle poasdsadasdasdasasdsd asds...</a>
                                                <div class="rel_source" style="line-height:15px">  Herald Sun | <span class="cat_red">1d 9h ago<span></span> </div> 
                                                </div>                                                                                                          
                                    </div>

So what im doing is, i am hiding the rel_source to show the overflowed text(rel).
What i dont want is to hide the rel_source if .rel is not overflow.
Any solution???

  • 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-05-27T14:45:34+00:00Added an answer on May 27, 2026 at 2:45 pm
    $(document).on("mouseover", ".rel ", function(){ 
    
    if ($('a',this).text().length< 90)
    { // error here?
        $(this).addClass("rel_shorty");
       $(this).removeClass("rel")
       }
    
     });
    

    css

     .rel_shorty{
            width: 470px;
        line-height: 15px;
            border-bottom:dotted 1px #dfdfdf;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my aspx I have this line: <link href=<%= Request.ApplicationPath %>/css/ma/screen-ma.css rel=Stylesheettype=text/css media=screen />
I have the following file: <html> <head> <title></title> <link rel=css type=text/css href=/empty.css title=css />
For text links, I have: CSS: a:link {color: #3366a9; text-decoration: none} a:hover {border-bottom: 1px
I have a css class where the LEFT needs the be the WIDTH of
I have css hover over images for my tabs and I'm trying to get
I have a CSS image sprite and this renderes perfect in FF, also IE.
I have some CSS that doesn't behave correctly with IE8. It works fine with
I have the css-validator.war file provided by W3C running locally on JBoss . I
I have a CSS file, which contain the style information of my web. Some
I have this css: fieldset li { padding-bottom: 0em; } However, it wasn't behaving

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.