Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE long link wrong break

Has anyone any idea how to prevent IE(7) wrong breaking urls?

Here is the example: http://jsfiddle.net/uQcj5/5/

The problem is that IE breaks url inside words, like:

http://stackoverflow.com/que
stions/
like image 606
FlashTrava Avatar asked Jul 13 '26 23:07

FlashTrava


2 Answers

You're telling the browser to break in the middle of words, just remove word-wrap: break-word; from your CSS.

like image 192
bfavaretto Avatar answered Jul 15 '26 12:07

bfavaretto


var str = 'http://stackoverflow.com/questions/10620008/ie-long-link-wrong-break'
str = str.replace(/\//g, '/​');

http://jsfiddle.net/uQcj5/10/

like image 36
Alex Pliutau Avatar answered Jul 15 '26 12:07

Alex Pliutau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!