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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:40:14+00:00 2026-06-09T04:40:14+00:00

I created a little Tooltip thats in a Container. So there a two divs

  • 0

I created a little Tooltip thats in a Container. So there a two divs both with position: absolute;. They have to be position absolute or otherwise they will mess up the whole design.

.container_1 {
     position: absolute;
     top: 20px;
     left: 20px;
}

.container_2 {
     position: absolute;
}

<div class="container_1"><div class="container_2">Full Name-Name</div></div>

I also have a CSS Triangle in the first container so that’s why there are two containers.

In the Tooltip there is shown the Full Name of a user. But now I have the problem that the div isn’t as wide as the content. So I fixed it through replacing space with &nbsp; but now there is the same problem with dash’s. But the problem doesn’t get fixed by replacing the dash with &ndash;. Anybody knows a 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-06-09T04:40:17+00:00Added an answer on June 9, 2026 at 4:40 am

    CSS:

    .container_1 {
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    .container_2 {
        position: absolute;
        width: 95px;
        overflow: hidden;
        white-space: nowrap;
    }
    

    http://jsfiddle.net/yG5eF/

    Edit: Sorry, totally misread it the first time.

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

Sidebar

Related Questions

I have created a little test project to try to resolve a problem I
Hi I have created a little application to move some files around and put
I have created a little example,please have a look, http://jsfiddle.net/bWTwL/ I want to have
Ok, I have created a little utility with AppleScript and used Automator to turn
I have created a little example(below) on my attempt to safely stop multiple threads
I have a really odd behavior here: I created a little popup dialog in
I have created a little program that reads in a Java file and feeds
I have created a little complex stored procedure on SQL Server 2008 R2 and
I have created a little Python egg (with setuptools) that I want to install
I have created a little execution timer and as an extra id like 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.