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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:54:18+00:00 2026-06-11T23:54:18+00:00

I am trying to output various colors for the tooltips (edit: from Twitter Bootstrap)

  • 0

I am trying to output various colors for the tooltips (edit: from Twitter Bootstrap) but it seems I’m not quite getting it. Just changing the default color hasn’t been hard, it’s just a matter of changing the colors for .tooltip and its associated definitions.

However assuming I wanted to change the color for a specific tooltip within the body

<div id="users" class="row">
    <div id="photo_stack" class="span6 photo_stack">
        <img id="photo1" src="" width="400px" height="300px" alt="" rel="tooltip" data-placement="right" title="Other Color" />

A simple approach like

#users .tooltip { background-color: #somecolor; }

doesn’t seem to work. I guess it’s something about the DOM and I’d need to attach some sort of classes to the specific tooltips? Or am I completely off? Thanks 🙂

Here’s a JSFiddle: http://jsfiddle.net/rZxrm/

  • 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-11T23:54:19+00:00Added an answer on June 11, 2026 at 11:54 pm

    Twitter bootstrap does not have this feature built in, but you could add your own functions to do this, like so:

    $('#photo1').hover(function() {$('.tooltip').addClass('tooltipPhoto')}, function () {$('.tooltip').removeClass('tooltipPhoto')});​
    

    and then you just have to define tooltipPhoto class in CSS to have a different background color.

    EDIT:
    Updated solution:

    function changeTooltipColorTo(color) {
        $('.tooltip-inner').css('background-color', color)
        $('.tooltip.top .tooltip-arrow').css('border-top-color', color);
        $('.tooltip.right .tooltip-arrow').css('border-right-color', color);
        $('.tooltip.left .tooltip-arrow').css('border-left-color', color);
        $('.tooltip.bottom .tooltip-arrow').css('border-bottom-color', color);
    }
    
    $(document).ready(function () {
        $("[rel=tooltip]").tooltip();
        $('#photo1').hover(function() {changeTooltipColorTo('#f00')});
        $('#photo2').hover(function() {changeTooltipColorTo('#0f0')});
        $('#photo3').hover(function() {changeTooltipColorTo('#00f')});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to concatenate the output of various functions into a textbox, but
I'm trying to output unicode string into RTF format. (using c# and winforms) From
I am trying to output audio samples, and do so with cswavplay from http://www.codeproject.com/KB/audio-video/cswavplay.aspx
I'm trying to write a Python script to test the output of some various
I am trying to understand how various ebook applications compile their output into a
I'm trying to output a string from an Object that has been passed into
I'm trying to understand what the different output is for the various .NET Network
I am trying to copy all of my output files from the solution target
I am trying to output the value of x in the following request: http://localhost:4827/Default.aspx?x=123123
I am trying to output JSON directly in my Razor view. The object being

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.