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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:25:49+00:00 2026-06-15T14:25:49+00:00

All was nice, but in one moment tooltips become crazy. http://jsfiddle.net/AJkJa/10/ tooltip should be

  • 0

All was nice, but in one moment tooltips become crazy.

http://jsfiddle.net/AJkJa/10/ tooltip should be near of text, but it’s on right border.
if i set small width, it’s will be on this width from text.

what i’m doing wrong?

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
    <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
    <script>
        $(document).ready(function () {
            $("[rel=tooltip]").tooltip();
        });
    </script>
</head>
<body>
<div rel="tooltip" data-original-title="tooltip" data-placement="right">hover me. tooltip should be here.but it's shifted right</div>
</body>
</html>​
  • 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-15T14:25:51+00:00Added an answer on June 15, 2026 at 2:25 pm

    Tooltip does not “became crazy”! When you place it right it will find the end of the container, and because a <div> renders as display:block it will find the end far away.

    A Simple way to prove it is given a background-color:red to that div and you will see what’s going on.

    To have only the hover me getting the hover effect, give the tooltip only to it, like:

    <div>
      <span rel="tooltip" data-original-title="tooltip" data-placement="right">hover me</span>. 
      tooltip should be here.but it's shifted right
    </div>
    

    updated example: http://jsfiddle.net/AJkJa/11/

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

Sidebar

Related Questions

This chart is displayed very nice but the log is not nice at all.
I'm looking for nice loading indicators for Silverlight. I found a few, but all
I've got some C++/CLI software which is all nice and documented in a C#'ish
I used once a very nice emacs function that set all my windows (emacs
I know if I nice a shell script (ie: before it runs) all processes
SBT has a nice hook which allows you to execute arbitrary code after all
Question says it all. Some quick code examples of usage would be nice.. thanks!
All -- I have these two methods in one of my classes: public static
at the moment I'm writing a simple script in ksh who should take some
What is the best way to store a route according to all nice patterns?

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.