We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

HTML tags and CSS properties supported

Hi
What HTML tags and CSS properties are supported in SuperToolTip?

Best regards
Roman

3 Replies

SK Senthil Kumaran Rajan Syncfusion Team February 18, 2016 07:10 AM UTC

Hi Roman,

Thanks for contacting Syncfusion Support.

The text formatting tags of the HTML and CSS are supported in SuperToolTip. Please make use of the below code example.

Text formatting such as below cases are supported.
  • Bold text
  • Important text
  • Italic text
  • Emphasized text
  • Marked text
  • Small text
  • Deleted text
  • Inserted text
  • Color

Code Example[HTML]:

Button1.Footer.Size = new System.Drawing.Size(200, 100);

Button1.Footer.RenderHtml = true;

Button1.Footer.Text = "<p>This text is normal.</p> " +

"<p>My favorite <ins>color</ins> is red.</p>";

this.superToolTip1.SetToolTip(this.buttonAdv1, Button1);



Code Example[CSS]

Button2.Footer.Size = new System.Drawing.Size(300, 200);

Button2.Footer.RenderHtml = true;

Button2.Footer.Text = "<!DOCTYPE html>" +

"<html>" +

"<head>" +

"<style>" +

"body {    color: blue; }" +

"h1 {    color: green;}" +

"</style>" +

"</head>" +

"<body>" +


"<h1>This is heading 1</h1>" +

"<p>This is an ordinary paragraph. Notice that this text is blue. The default text color for a page is defined in the body selector.</p>" +


"</body>" +

"</html>";

this.superToolTip1.SetToolTip(this.buttonAdv2, Button2);


We have prepared a sample for your reference and it can be downloaded from the below location.

Sample : http://www.syncfusion.com/downloads/support/forum/122106/ze/HTMLAndCSS-15246166

Also refer to the following screenshot.

HTML :


CSS :



Regards,
Senthil


RS Roman Sallin February 18, 2016 07:34 AM UTC

Hi Senthil

Thank you for the sample which is useful. Do you have a complete list of all HTML tags and CSS proporties that SuperToolTip supports? I suppose that not everything from HTML5 and CSS3 can be used with SuperToolTip, but rather a subset of it. I did not found such a list in the online documention.

Best regards
Roman


SK Senthil Kumaran Rajan Syncfusion Team February 19, 2016 01:34 PM UTC

Hi Roman,

Thank you for your update.

As we have mentioned on our previous update, the Text formatting tags of the HTML and CSS files are supported in SuperToolTip. We have notified this to our documentation team and it will be published at the earliest.

Regards,
Senthil

Loader.
Live Chat Icon For mobile
Up arrow icon