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

  • Home
  • SEARCH
  • 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 9187911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:53:19+00:00 2026-06-17T19:53:19+00:00

I have an issue where the Bootstrap tooltip causes spacing on my input fields

  • 0

I have an issue where the Bootstrap tooltip causes spacing on my input fields to collapse. The markup is:

<form>
  <div class="controls controls-row">
    <input class="span4" data-original-title="Default tooltip" rel="tooltip" type="text" placeholder=".span4">
    <input class="span1" data-original-title="Default tooltip" rel="tooltip" type="text" placeholder=".span1">
  </div>
</form>

and I’m just using the default for the wireup:

$('[rel="tooltip"]').tooltip();

I’ve created a jsFiddle here to show the problem: http://jsfiddle.net/bAaQP/2/

Note that when an input receives focus, it collapses the whitespace to the right of the control.

I’m just using the example grid form from Bootstrap 2.2.2. The form elements have relative span sizing set and are contained within a div decorated with the controls-row class.

I’ve tried with the latest version of Bootstrap-tooltip.js as well but it still shows the same behavior.

  • 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-17T19:53:20+00:00Added an answer on June 17, 2026 at 7:53 pm

    Edit: Bootstrap has added a container option to tooltips and popovers since version 2.3.0 which addresses this issue.

    Usage:

    $('[rel="tooltip"]').tooltip({
        container: '.controls'
    });
    

    This appears to be a somewhat obscure bug in Bootstrap.

    When the tooltip appears between the two spans, it nullifies this CSS style (line 1319 of bootstrap.css):

    .controls-row [class*="span"] + [class*="span"] {
        margin-left: 20px;
    }
    

    Which leaves margin-left: 0, causing the whitespace jump. Here’s a jsFiddle using the tooltip ‘click’ trigger so you can observe this behavior with your inspector of choice.

    You can add the following CSS as a hack fix for your purposes:

    .controls-row [class*="span"] + .tooltip + [class*="span"] {
        margin-left: 20px;
    }
    

    Better solution: open an issue to report the bug.

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

Sidebar

Related Questions

I have the following markup using a twitter bootstrap modal plugin: <div class=tabbable> <ul
I'm having a design/css issue. I'm using Twitter Bootstrap and have a .row-fluid, with
I have issue with: <form:checkboxes path=roles cssClass=checkbox items=${roleSelections} /> If previous line is used
I have a working twitter bootstrap install and simple form generates the following: <form
I have an issue with gaining focus on my first input field in my
I have an issue with aligning thumbnails in a Twitter Bootstrap well: I'm using
Using bootstrap, I have set an example up here: http://fixitup.com.au/clients/bootstrap/issue.html Using scrollto for the
I have a main bootstrap class (singleton1 in the example bellow) that instantiates some
I have an issue where I am trying to override the twitter bootstrap (v
I have a very weird issue. I'm using Twitter Bootstrap 2. I have a

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.