Truncate a string at the beginning

Adaceameritte

New Member
I am doing a \[code\]text-overflow: ellipsis\[/code\] in a div to truncate some extremely long text values. Basically to avoid the overflow from increasing the width of the div since there is no white space in URL. What I need to do is display the following:\[code\]http://www.somewebsite.org/over-the-counter/drugs/medone.htmlhttp://www.somewebsite.org/over-the-counter/drugs/medtwo.htmlhttp://www.somewebsite.org/over-the-counter/drugs/medthree.html\[/code\]as:\[code\]...he-counter/drugs/medone.html...he-counter/drugs/medtwo.html...-counter/drugs/medthree.html\[/code\]Is this doable at-all in HTML/CSS? or is jQuery/PHP my only resolve?BTW, upon mouseover the full string is displayed as a tooltip.
 
Top