qTip2 setting background color

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.


.ui-tooltip-content
{
    padding: 0px;
}

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s