Tooltip with css_tt

B

Bla ...

Using "css_tt" gem, I was able to create a tooltip.
However, my text (of the tooltip) has many "<br/>".

Here's my view:


<p>
<% @tooltip = "Whatever <br/>
This is just an example<br/>
I need many break lines<br/>
Got it?" %>
<%= css_tt("Tooltip:", @tooltip, :title => "My title") %>
</p>


In my computer, the tooltip shows a cute text, WITH the break lines.
However, when I try to run the project in ANOTHER computer, instead of
break lines, i get the "<br/>" that I've wrote..

Someone knows what can it be?
 
J

Jeremy Bopp

Using "css_tt" gem, I was able to create a tooltip.
However, my text (of the tooltip) has many "<br/>".

Here's my view:


<p>
<% @tooltip = "Whatever <br/>
This is just an example<br/>
I need many break lines<br/>
Got it?" %>
<%= css_tt("Tooltip:", @tooltip, :title => "My title") %>
</p>


In my computer, the tooltip shows a cute text, WITH the break lines.
However, when I try to run the project in ANOTHER computer, instead of
break lines, i get the "<br/>" that I've wrote..

Someone knows what can it be?

I'm not a CSS/HTML expert, but are you testing with the same version of
the same browser on both computers? If not, this may be explained by
incompatible differences between the browsers in question.

I wish I could posit a solution. Have you tried using \n instead of <br/>?

-Jeremy
 
B

Bla ...

Thanks for the answer.

I've tried to use "\n" instead of "<br/>". But it doesn't work in any
computer, even mine.

There's some way to I force the browser to compose the way I want to?
 
J

Jeremy Bopp

Thanks for the answer.

I've tried to use "\n" instead of "<br/>". But it doesn't work in any
computer, even mine.

There's some way to I force the browser to compose the way I want to?

This doesn't appear to be a general Ruby problem, so this is probably
not the best forum in which to pose this question. Have you tried
contacting the author of the css_tt gem? Since css_tt advertises itself
for use with Rails, you might also try asking in that list:

http://www.ruby-forum.com/forum/3

Maybe someone there will have some experience with this gem.

-Jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top