This is a migrated thread and some comments may be shown as answers.

How to Shrink Border of RadToolTip?

2 Answers 69 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 28 Aug 2013, 03:44 AM
Trying to implement RadToolTips for the first time, I don't like the thick border that appears as a default.  I've tried several things to reduce its size but with no luck.  How do I do this?

Note: I do not use Skins with Telerik controls so would appreciate a non-Skin solution.

Thank you,

Robert W.

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 Aug 2013, 11:42 AM
Hi Robert,

If you examine the control's rendered HTML in a tool like firebug you will get a clean idea of the CSS rules that govern its appearance. I assume the thickest border you see is actually the default padding the content has (the while stripe around the yellow content). This can be removed with the following rule:
div.RadToolTip .rtWrapper td.rtWrapperContent
{
    padding: 0;
}

If you are looking to remove the other borders the controls has - there are several things you can do:
- the primary one is creating a custom skin with the desired effects

Since this is not an option, here are the other suggestions I can give:
- set the EnableShadow property to false to remove the shadow. It will make the borders look thinner
- switch to Lightweigh renderMode (note that this will change the above selector, but you can examine the HTML to find the corresponding classes) and override the borders with CSS3 there if you do not like their appearance

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Robert
Top achievements
Rank 1
answered on 28 Aug 2013, 10:48 PM
Thanks, Marin.
Tags
ToolTip
Asked by
Robert
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Robert
Top achievements
Rank 1
Share this question
or