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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:33:41+00:00 2026-05-29T15:33:41+00:00

this is my page: http://jsfiddle.net/5RKnQ/ . If you hover over the avatar image, you

  • 0

this is my page: http://jsfiddle.net/5RKnQ/. If you hover over the avatar image, you will visualize something like this: Example

On jsfiddle, width seems to be broken, on my browser works correctly. Anyway i would like to arrange those blue spans inside the box in the best way possible, adapting the outer div to their width and saving as much space as possible.

  • 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-29T15:33:42+00:00Added an answer on May 29, 2026 at 3:33 pm

    I can’t seem to update your jsfiddle, jsfiddle’s been kind of a mess today, even though I was able to use it to write this code.

    (edit – works after logging in): http://jsfiddle.net/HQ6Py/

    I am not sure if there’s a CSS way to do what you want, but here is some script that seems to work. Basically, you check the actual rightmost position of each span and keep track of the largest one, then set the width based on that.

    Note that the maximum size of the div was being constrained by “max-width:28%” which is what was messing it up in JSFiddle – remove that from your styles and replace with an absolute pixel value.

     $(".username").hoverIntent({
        over: function(e) {
            var minLeft, maxWidth = 0,
                list = $(this).find(".title_list");
    
            // start the fadeIn first otherwise the positions won't be available
            list.fadeIn(300);
    
            list.find('span').each(function() {
                var left = $(this).position().left,
                    width = $(this).outerWidth() + left;
    
                if (maxWidth < width) {
                    maxWidth = width;
                }
            });
            list.css("width", maxWidth);
    
        },
        out: function(e) {
            $(this).find(".title_list").fadeOut(300);
        },
        timeout: 3000
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On this page: http://www.arvag.net/old/smsbox.de/ when you hover over Informationen and Über ins, it shows
I'm working on making this web page: http://jsfiddle.net/pW8yj/ and I want to get a
I have picked up this code(DragandDrop.jsp) from this page :: http://jsfiddle.net/petersendidit/S4QgX/ I am getting
I have created a custom drop-down element, which is listed on this page: http://jsfiddle.net/spryno724/2snUH/3/
I have this page: http://jsfiddle.net/aJNAw/1/ <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html
http://jsfiddle.net/zjRga/55/ I want a div to open up that will appear over top of
if you run this page http://jsfiddle.net/atoswchataigner/euX5F in IE7/IE8 you'll get : Stop running this
I'm using the code from this page http://jsfiddle.net/gnQUe/170/ jquery slide toggle as a form
I this is example of my list of forms on my page: http://jsfiddle.net/GSC3x/ It
in this page http://api.jquery.com/category/effects/ when you put 'up'(keyboard) and 'down',then put 'enter',it will go

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.