Feb17

qTip2 setting background color

Posted by: Brian Chan | Filed in: Uncategorized | Tags: | 10:55 am, February 17th, 2012 Add comments

I have been playing with qTip2 for a bit. Once you figure out the code to popup a tooltip, the next thing you think about is probably styling.

I was looking for ways to set the background color from the default white to something else. If you give your qTip2′ed content, say a div, the background color yellow, you will still see white padding around your div.

To take away that white border or padding, Have the following styling.

1
2
3
4
5
6
<style type="text/css">
.ui-tooltip-content
{
    padding: 0px;
}
</style>

The white padding will then be gone. You can then style your div in anyway you want.




Related posts:

  1. command prompt setting for my sanity
  2. Tooltip
  3. Vim setting

Leave a Reply