senzacionale wrote:
> 
> i have one problem with tooltip effect
> 
> I want to cut url adress, becouse if it is too long then it show over the
> edge, over the witdh: 150px.
> how can i cut it?
> 
> 


I think this a more of a problem with the browser (Im guessing you are using
firefox) , than with the tooltip.  Firefox refuses to word wrap text if it
does not have any spaces in it (like a url) regardless of the width
specified on the element.  To the best of my knowledge there is no way to
solve this with css.

You should be able to use a javascript substr(x) where x is the number of
characters you want to be allowed to display and then possibly follow that
with a '...' to show it has been cut off.

var url =
'thisisareallylongstringthatgoesoutsideoftheboundsofmytooltipboxanditlooksreallyhorrblebecauseitwillnotwrap'
foo url.substr(12)...  
-- 
View this message in context: 
http://www.nabble.com/tooltip-effect-problem-tf4236901s15494.html#a12055639
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to