2.0 Form: tip to add a tooltip for non techies

2.0 Form: tip to add a tooltip for non techies

Hello,

I have struggled to add a customized tooltip with javascript on a 2.0 form but I finally managed with some CSS and html code.
I thought some of you may be interested, especially the non-techies πŸ™‚


Result (when you mouser over the [?] )
0EM50000000RuNa.jpg

CSS code
/* to allow tooltip - added by Cecile Maindron */

a.tooltip {outline:none; }
a.tooltip strong {line-height:16px;}
a.tooltip:hover {text-decoration:none;}
a.tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:-30px; margin-left:28px; width:300px; line-height:16px; }
a.tooltip:hover span{ display:inline; position:absolute; color:#111; border:1px solid #DCEAEC; background:#F0FBFF; font-weight: 100;}
a.tooltip span strong{ font-weight: 900;}
.callout {z-index:20;position:absolute;top:30px;border:0;left:-12px;}

/*CSS3 extras*/
a.tooltip span { border-radius:4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; -moz-box-shadow: 5px 5px 8px #CCC; -webkit-box-shadow: 5px 5px 8px #CCC; box-shadow: 5px 5px 8px #CCC; }

html code
<p><span style="color: #1e579b;">Download Options: <a href="#" class="tooltip"><img src="http://info.talend.com/rs/talend/images/help_button.png" alt="" /><span><strong>Talend Enterprise Data Integration<br /></strong><br /><strong>Talend Studio</strong> is a 1.8GB download and&nbsp;includes graphical tools to develop and deploy data integration projects. Recommended for new users.<br /><br /><strong>Complete Install</strong> is 3.7GB download that includes Talend Studio plus tools for administrators to help manage projects, team collaboration and much more.</span></a></span></p>


CΓ©cile @ Talend
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: 2.0 Form: tip to add a tooltip for non techies

Hi Cecile, 
did you try if it works on older versions of Internet Explorer?


Best regards

Steffen

Re: 2.0 Form: tip to add a tooltip for non techies

no I haven't. should I?
Anonymous
Not applicable

Re: 2.0 Form: tip to add a tooltip for non techies

Hi Cecile,
Just was interested if it works because I do have my doubts but will test it myself. Anyway thank you for sharing it.

Best regards

Steffen