I have an issue in word wrapping in CSS. I have a td
where I have defined width
as 300px
. I have a url inside the td like
http://www.abc.com/testing/testdata/testurl/test/testing.html
When I use word-wrap: break-word
, the text is wrapping as
http://www.abc.com/testing/testdata/tes
turl/test/testing.html
But I do want the word to break. Like /tes
in one line and turl
in another line. I want it as,
http://www.abc.com/testing/testdata/testurl/
test/testing.html
Kindly help. Any help is appreciated. Thanks.
Updated:
I also have probability of getting text other than URL. Means I can't relay on '/'
in the data. I can use javascript not jquery.